CMSensorRecorder.authorizationStatus does not update after Motion Privacy is changed

Originator:WilliamJRobinson89
Number:rdar://35668473 Date Originated:
Status:Open Resolved:
Product:OS + SDK Product Version:
Classification: Reproducible:Yes
 
The status that CMSensorRecorder.authorizationStatus returns does not update when a user's system-wide Motion & Fitness privacy settings are changed. This can be observed by following the below steps in the example project on a real device.

Observed
Step 1. iPhone's system-wide Privacy settings for Motion & Fitness are turned off.
Step 2. CMSensorRecorder.authorizationStatus returns CMAuthorizationStatusRestricted.
Step 3. iPhone's system-wide Privacy settings for Motion & Fitness are turned on.
Step 4. CMSensorRecorder.authorizationStatus returns CMAuthorizationStatusRestricted.

Current Work Around
The user must force quit the app and on resume CMSensorRecorder.authorizationStatus will return the correct status.

Expected
Step 1. iPhone's system-wide Privacy settings for Motion & Fitness are turned off.
Step 2. CMSensorRecorder.authorizationStatus returns CMAuthorizationStatusRestricted.
Step 3. iPhone's system-wide Privacy settings for Motion & Fitness are turned on.
Step 4. CMSensorRecorder.authorizationStatus returns CMAuthorizationStatusNotDetermined (or some other relevant status).

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!