[
https://issues.apache.org/jira/browse/CB-11661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417933#comment-15417933
]
ASF GitHub Bot commented on CB-11661:
-------------------------------------
Github user pke commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-camera/pull/229#discussion_r74502437
--- 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 --
What has this to do in the Camera Plugin?
> 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: [email protected]
For additional commands, e-mail: [email protected]