CMAuthorizationStatus is not getting updated for motion permission

Hi there!

I am checking the authorizationStatus() of CMMotionActivityManager when Motion toggle disabled in phone's Settings > Privacy > Motion & Fitness. I get a correct status of "restricted" for system wide restrictions.

When I enable the toggle, and bring my app back to foreground from background, the authorizationStatus() still returns "restricted". If I swipe-out/terminate the application and relaunch, it then changes the authorization status. The same happens when the app is reinstalled.

Is there a way to refresh the authorizationStatus() when bringing the app from background to foreground?

Thanks!
CMAuthorizationStatus is not getting updated for motion permission
 
 
Q