Added NSPhotoLibraryUsageDescription parameter to example install command Fixing some usages of NSPhotoLibraryUsageDescriptionentry
This closes #240 Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/cc48945f Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/cc48945f Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/cc48945f Branch: refs/heads/2.3.x Commit: cc48945f37866640ba8c536944cc3bf766aba71a Parents: 8b3410b Author: Chris Rae <[email protected]> Authored: Wed Oct 26 15:20:06 2016 -0700 Committer: Julio César <[email protected]> Committed: Sun Nov 13 23:36:38 2016 +0100 ---------------------------------------------------------------------- jsdoc2md/TEMPLATE.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/cc48945f/jsdoc2md/TEMPLATE.md ---------------------------------------------------------------------- diff --git a/jsdoc2md/TEMPLATE.md b/jsdoc2md/TEMPLATE.md index 6f37e20..ba9f63a 100644 --- a/jsdoc2md/TEMPLATE.md +++ b/jsdoc2md/TEMPLATE.md @@ -18,21 +18,21 @@ the system's image library. ### iOS Quirks -Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` and `NSPhotoLibraryUsageDescriptionentry` in the info.plist. +Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` and `NSPhotoLibraryUsageDescription` 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. +- `NSPhotoLibraryUsageDescription` 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` -- +- `PHOTOLIBRARY_USAGE_DESCRIPTION` for `NSPhotoLibraryUsageDescription` + Example: - cordova plugin add cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION="your usage message" + cordova plugin add cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION="your usage message" --variable PHOTOLIBRARY_USAGE_DESCRIPTION="your usage message" If you don't pass the variable, the plugin will add an empty string as value. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
