I wonder where you tested your application? Directly from Apple Docs.
Directly from Apple Doc.
Hardware limitations Although most of the features of iOS devices can be modeled in iOS Simulator, there are some hardware features that need to be tested directly on the device. The hardware functions that cannot be modeled are as follows:
Motion support
Accelerometer
gyroscope
Audio and video input
the cameras
Microphone
Proximity sensor
, iOS. iOS . .