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

ASF GitHub Bot commented on CB-11661:
-------------------------------------

Github user vladimir-kotikov commented on a diff in the pull request:

    
https://github.com/apache/cordova-plugin-camera/pull/229#discussion_r74549610
  
    --- Diff: plugin.xml ---
    @@ -150,6 +150,11 @@
              <framework src="CoreGraphics.framework" />
              <framework src="AVFoundation.framework" />
     
    +         <preference name="CAMERA_USAGE_DESCRIPTION" default=" " />
    +         <config-file target="*-Info.plist" 
parent="NSCameraUsageDescription">
    +             <string>$CAMERA_USAGE_DESCRIPTION</string>
    +         </config-file>
    +
              <config-file target="*-Info.plist" 
parent="NSLocationWhenInUseUsageDescription">
    --- End diff --
    
    @pke, I believe this is for `CameraUsesGeolocation` 
[preference](https://github.com/apache/cordova-plugin-camera#preferences-ios)


> Camera plugin crashes on iOS 10
> -------------------------------
>
>                 Key: CB-11661
>                 URL: https://issues.apache.org/jira/browse/CB-11661
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: Plugin Camera
>    Affects Versions: 3.5.0
>         Environment: iOS 10
>            Reporter: jcesarmobile
>            Assignee: jcesarmobile
>
> We need to add a privacy description to the plist. Since iOS 6 Apple provided 
> a way to show the user why a certain permission is required. In iOS 10 this 
> becomes mandatory, so any app not specifying the key will crash at runtime 
> when a permissions is requested.
> This plugin requests the Camera permission, so at the very least we need to 
> add NSCameraUsageDescription and NSPhotoLibraryUsageDescription to the 
> `plist`.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to