[
https://issues.apache.org/jira/browse/CB-11661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417797#comment-15417797
]
ASF GitHub Bot commented on CB-11661:
-------------------------------------
GitHub user mhartington opened a pull request:
https://github.com/apache/cordova-plugin-camera/pull/229
CB-11661: (ios) Add mandatory iOS 10 privacy description
<!--
Please make sure the checklist boxes are all checked before submitting the
PR. The checklist
is intended as a quick reference, for complete details please see our
Contributor Guidelines:
http://cordova.apache.org/contribute/contribute_guidelines.html
Thanks!
-->
### Platforms affected
iOS
### What does this PR do?
Adds the mandatory NSCameraUsageDescription key to the info.plist, allowing
to pass the value as a variable.
Documented the usage of the variable on plugin install as iOS quirk
### What testing has been done on this change?
### Checklist
- [X ] [ICLA](http://www.apache.org/licenses/icla.txt) has been signed and
submitted to [email protected].
- [X ] [Reported an
issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database
- [X ] Commit message follows the format: "CB-3232: (android) Fix bug with
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform
affected.
- [ ] Added automated test coverage as appropriate for this change.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mhartington/cordova-plugin-camera master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-camera/pull/229.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #229
----
commit 8ead470d752fdc50f3d315fb3aeb3fa709ce3f45
Author: mhartington <[email protected]>
Date: 2016-08-11T19:22:39Z
CB-11661: (ios) Add mandatory iOS 10 privacy description
----
> 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]