CB-11661: (ios) Add mandatory iOS 10 privacy description

Add support for photoalbum description

 This closes #236
This commit is contained in:
Jacques de Villiers 2016-09-05 09:38:16 +01:00 committed by Julio César
parent 9fe94479e2
commit 9b566d3f0b
3 changed files with 26 additions and 4 deletions

View File

@ -76,9 +76,18 @@ Documentation consists of template and API docs produced from the plugin JS code
### iOS Quirks
Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` entry in the info.plist.
Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` and `NSPhotoLibraryUsageDescriptionentry` in the info.plist.
* `NSCameraUsageDescription` describes the reason that the app accesses the users camera.
* `NSPhotoLibraryUsageDescriptionentry` describes the reason the app accesses the user's photo library.
When the system prompts the user to allow access, this string is displayed as part of the dialog box.
To add this entry you can pass the following variables on plugin install.
* `CAMERA_USAGE_DESCRIPTION` for `NSCameraUsageDescription`
* `PHOTOLIBRARY_USAGE_DESCRIPTION` for `NSPhotoLibraryUsageDescriptionentry`
`NSCameraUsageDescription` describes the reason that the app accesses the users camera. When the system prompts the user to allow access, this string is displayed as part of the dialog box. To add this entry you can pass the variable `CAMERA_USAGE_DESCRIPTION` on plugin install.
-
Example:

View File

@ -18,9 +18,17 @@ the system's image library.
### iOS Quirks
Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` entry in the info.plist.
Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` and `NSPhotoLibraryUsageDescriptionentry` in the info.plist.
`NSCameraUsageDescription` describes the reason that the app accesses the users camera. When the system prompts the user to allow access, this string is displayed as part of the dialog box. To add this entry you can pass the variable `CAMERA_USAGE_DESCRIPTION` on plugin install.
- `NSCameraUsageDescription` describes the reason that the app accesses the users camera.
- `NSPhotoLibraryUsageDescriptionentry` describes the reason the app accesses the user's photo library.
When the system prompts the user to allow access, this string is displayed as part of the dialog box.
To add this entry you can pass the following variables on plugin install.
- `CAMERA_USAGE_DESCRIPTION` for `NSCameraUsageDescription`
- `PHOTOLIBRARY_USAGE_DESCRIPTION` for `NSPhotoLibraryUsageDescriptionentry`
-
Example:

View File

@ -155,6 +155,11 @@
<string>$CAMERA_USAGE_DESCRIPTION</string>
</config-file>
<preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default=" " />
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
<string>$PHOTOLIBRARY_USAGE_DESCRIPTION</string>
</config-file>
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
<string></string>
</config-file>