Photo restriction settings is not reflected immediately in application

Originator:greenfish29
Number:rdar://18781034 Date Originated:27-Oct-2014 04:54 PM
Status:Open Resolved:
Product:iOS Product Version:iOS 8.1 (12B411)
Classification: Reproducible:Always
 
Summary:
When user allow access to Photo Library in the application, then press home button, go to Settings > General > Restrictions > Photos and change "Allow Changes" to "Don't Allow Changes", then go back to the application and check that ALAssetsLibrary.authorizationStatus() is equal to ALAuthorizationStatusRestricted. It should be, but is not, so I can't react to this action with changes in UI. Change is reflecter after application is restarted.

Steps to Reproduce:
1. Run application on device, not in simulator.
2. Open UIImagePickerController within it.
3. System dialog about access permissions is showed, tap on "Allow access" button.
4. Press home button.
5. Open Settings > General > Restrictions > Photos.
6. Change "Allow access" to "Don't allow access".
7. Double press Home button and  go back to our application.
8. Check that ALAssetsLibrary.authorizationStatus() is not equal to ALAuthorizationStatusRestricted, but it should be.

Expected Results:
ALAssetsLibrary.authorizationStatus() should immediately reflect system settings, when user change it.

Actual Results:
ALAssetsLibrary.authorizationStatus() still holds its previous value.

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!