iOS 11 - NSPhotoLibraryAddUsageDescription required
See original GitHub issueDescription
Just a heads up for anyone trying to use this lib on iOS11 - you need to add NSPhotoLibraryAddUsageDescription
in your Info.plist (see https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html)
How to repeat issue and example
The app will crash on iOS 11 if you don’t add NSPhotoLibraryAddUsageDescription
with a message explaining why you need access to the photos.
Additional Information
- React Native version: all
- Platform: iOS 11
- Development Operating System: MacOS
- Dev tools: Xcode
Issue Analytics
- State:
- Created 6 years ago
- Reactions:22
- Comments:13
Top Results From Across the Web
NSPhotoLibraryAddUsageDescri...
NSPhotoLibraryAddUsageDescription. A message that tells the user why the app is requesting add-only access to the user's photo library. iOS 11.0+ iPadOS ...
Read more >iOS 11 - NSPhotoLibraryAddUsageDescription required #632
The app will crash on iOS 11 if you don't add NSPhotoLibraryAddUsageDescription with a message explaining why you need access to the photos....
Read more >ios - Stack Overflow
You need to declare both NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription to get it WORKS on both iOS 9, 10.3 and 11.
Read more >[#CB-13332] iOS 11 Error When Taking Picture Missing ...
The app's Info.plist must contain an NSPhotoLibraryAddUsageDescription key with a string value explaining to the user how the app uses this data ...
Read more >Ios – the crash of “The app's Info.plist must contain ... - iTecNote
NSPhotoLibraryAddUsageDescription : This key lets you describe the reason your app seeks write-only access to the user's photo library. When the system prompts ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I added both NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription and now users must respond to two prompts to allow each one. This annoys users.
@cosmith You said this is a bug. A bug in react-native-image-picker ?
NSPhotoLibraryUsageDescription and NSPhotoLibraryUsageDescription.
Thanks for a great library!
I’ve added both NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription but my app still isn’t asking the user for permission. Does it matter what value (i.e., what text) you add to the plist?