collisions not detected

I am trying to make a game where a ball collides with a wall which loads another scene through onCollisionEnter. The project works fine in the Unity but nothing happens when I collide with the wall in the android version. I’ve tried using onTriggerEnter. Is there any way to fix this problem or is there any way to get around the problem and collide with the door with other code?

during build of the android version have you dragged all the required scenes inside Build settings? If you have you put them in correct order.