[
https://issues.apache.org/jira/browse/CB-13332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199380#comment-16199380
]
ASF GitHub Bot commented on CB-13332:
-------------------------------------
Github user jcesarmobile commented on the issue:
https://github.com/apache/cordova-plugin-camera/pull/289
Thanks for you PR, but you are just duplicating
NSPhotoLibraryUsageDescription, the one needed for iOS 11 is
NSPhotoLibraryAddUsageDescription.
Anyway, we are removing the preferences like this from the plugin.xml as it
causes conflicts with other plugins requiring the same permissions.
The correct way of adding the permissions is using `edit-config` tag in the
config.xml like this
```
<edit-config target="NSPhotoLibraryAddUsageDescription" file="*-Info.plist"
mode="merge">
<string>need to save on the photo library for some reason</string>
</edit-config>
```
Can you close the PR?
> iOS 11 Error When Taking Picture Missing NSPhotoLibraryAddUsageDescription
> --------------------------------------------------------------------------
>
> Key: CB-13332
> URL: https://issues.apache.org/jira/browse/CB-13332
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-camera
> Environment: iOS 11
> Reporter: Sam Mino
> Priority: Blocker
>
> I am using this plugin to take a picture, but in iOS11 I receive the
> following error:
> *
> _This app has crashed because it attempted to access privacy-sensitive data
> without a usage description. The app's Info.plist must contain an
> NSPhotoLibraryAddUsageDescription key with a string value explaining to the
> user how the app uses this data._*
> _Note: I have descriptions for CAMERA_USAGE_DESCRIPTION and
> PHOTOLIBRARY_USAGE_DESCRIPTION. I was able to take a picture in iOS 10._
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]