From 9b566d3f0b066b01b8f74db296cf0dbf62b7e358 Mon Sep 17 00:00:00 2001 From: Jacques de Villiers Date: Mon, 5 Sep 2016 09:38:16 +0100 Subject: [PATCH] CB-11661: (ios) Add mandatory iOS 10 privacy description Add support for photoalbum description This closes #236 --- README.md | 13 +++++++++++-- jsdoc2md/TEMPLATE.md | 12 ++++++++++-- plugin.xml | 5 +++++ 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9b2b7a3..1d750f3 100644 --- a/README.md +++ b/README.md @@ -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 user’s 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 user’s 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: diff --git a/jsdoc2md/TEMPLATE.md b/jsdoc2md/TEMPLATE.md index 696fbf5..6f37e20 100644 --- a/jsdoc2md/TEMPLATE.md +++ b/jsdoc2md/TEMPLATE.md @@ -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 user’s 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 user’s 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: diff --git a/plugin.xml b/plugin.xml index 0911fb8..a2174b3 100644 --- a/plugin.xml +++ b/plugin.xml @@ -155,6 +155,11 @@ $CAMERA_USAGE_DESCRIPTION + + + $PHOTOLIBRARY_USAGE_DESCRIPTION + +