From e92a482a9050a6304271eb7348a4c08bf4bf4603 Mon Sep 17 00:00:00 2001 From: Kristiyan Dobrev Date: Sat, 13 Aug 2016 02:19:16 +0200 Subject: [PATCH 1/2] Add privacy description required by iOS 10 --- README.md | 12 ++++++++++++ plugin.xml | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 17eec97..c0ba249 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,18 @@ window.imagePicker.getPictures( // quality of resized image, defaults to 100 quality: int (0-100) }; + +### iOS 10 issues + +Starting from iOS 10, Apple started asking for specifying the reason for accessing the user’s photo library, therefore it's mandatory to add `NSPhotoLibraryUsageDescription` entry in the info.plist. + +[`NSPhotoLibraryUsageDescription`](https://developer.apple.com/library/mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW17) describes the reason that 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. In order to add this entry you must pass the variable `PHOTO_LIBRARY_USAGE_DESCRIPTION` on plugin install. + +Example: + +cordova plugin add cordova-plugin-image-picker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="your message"` + +Empty string will be added as value if you dont pass the variable ### Note for Android Use diff --git a/plugin.xml b/plugin.xml index 351f3c3..7a02555 100644 --- a/plugin.xml +++ b/plugin.xml @@ -22,6 +22,12 @@ + + + + $PHOTO_LIBRARY_USAGE_DESCRIPTION + + From 3fe32abd8093eb349773523b66f8cc3b6e619ea4 Mon Sep 17 00:00:00 2001 From: Sam Dushay Date: Tue, 27 Sep 2016 17:23:17 -0400 Subject: [PATCH 2/2] whitespace issue --- plugin.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.xml b/plugin.xml index 7a02555..23f4718 100644 --- a/plugin.xml +++ b/plugin.xml @@ -24,9 +24,9 @@ - - $PHOTO_LIBRARY_USAGE_DESCRIPTION - + + $PHOTO_LIBRARY_USAGE_DESCRIPTION +