[ 
https://issues.apache.org/jira/browse/CB-13332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16194112#comment-16194112
 ] 

Sam Mino commented on CB-13332:
-------------------------------

I was able to find a work around. 

In my config.xml I added the following under this plugin.

<variable name="PHOTOLIBRARY_ADD_USAGE_DESCRIPTION" value="Access Photo Library 
for Profile Picture" />

I also added the following under plugins/cordova-plugin-camera/plugin.xml

        <preference name="PHOTOLIBRARY_ADD_USAGE_DESCRIPTION" default=" " />
         <config-file target="*-Info.plist" 
parent="NSPhotoLibraryAddUsageDescription">
             <string>$PHOTOLIBRARY_ADD_USAGE_DESCRIPTION</string>
         </config-file>


> 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]

Reply via email to