PHAuthorizationStatus is always PHAuthorizationStatusNotDetermined
| Originator: | jordan.bondo | ||
| Number: | rdar://34745933 | Date Originated: | Sept 29, 2017 |
| Status: | Open | Resolved: | |
| Product: | iOS + SDK | Product Version: | 11 |
| Classification: | Serious Bug | Reproducible: | Always |
Area: Photos Summary: On iOS 11, calling `[PHPhotoLibrary authorizationStatus]` always returns `PHAuthorizationStatusNotDetermined`, regardless of whether the user has granted the app access to their photos. If the use did allow access to their Photos, the image WILL be saved, regardless of the status of `[PHPhotoLibrary authorizationStatus]` Steps to Reproduce: 1. Create an app that attempts to save a photo to the users photo library 2. When prompted, either allow or deny the app permissions to access the users photo library (it does not matter which) 3. Call `[PHPhotoLibrary authorizationStatus]` and check the returned value. Expected Results: After granting or denying permission to Photos, the value returned from `[PHPhotoLibrary authorizationStatus]` should be either `PHAuthorizationStatusDenied` or `PHAuthorizationStatusAuthorized`. Actual Results: Value returned from `[PHPhotoLibrary authorizationStatus]` is always `PHAuthorizationStatusNotDetermined` Version/Build: Xcode 9 and Xcode 9.1 beta 1 iOS 11, iOS 11.0.1, and iOS 11.1 beta 1
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!