0 Replies
      Latest reply on Nov 3, 2019 10:10 PM by ignited
      ignited Level 1 Level 1 (0 points)



        I have a Level app using CMMotionManager to obtain device orientation events. To make the application easier to use, I've added a feature to detect if the magnetic field requires calibration and instructions on how to calibrate.


        I would like to test this functionality and would like to find a way to force 'recalibration' of the CMMotionManager as happens when the first time the Compass app is launched.


        I'm currently testing if a CMDeviceMotion .magneticField.accuracy == .uncalibrated


        Is there anyway I can force the iPhone to reset the magneticField.accuracy to .uncalibrated so I can test the calibration UI on a real device?