mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-31 12:42:50 +08:00
CB-11661: (ios) Add mandatory iOS 10 privacy description
Add support for photoalbum description This closes #236
This commit is contained in:
parent
9fe94479e2
commit
9b566d3f0b
13
README.md
13
README.md
@ -76,9 +76,18 @@ Documentation consists of template and API docs produced from the plugin JS code
|
|||||||
|
|
||||||
### iOS Quirks
|
### 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:
|
Example:
|
||||||
|
|
||||||
|
@ -18,9 +18,17 @@ the system's image library.
|
|||||||
|
|
||||||
### iOS Quirks
|
### 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:
|
Example:
|
||||||
|
|
||||||
|
@ -155,6 +155,11 @@
|
|||||||
<string>$CAMERA_USAGE_DESCRIPTION</string>
|
<string>$CAMERA_USAGE_DESCRIPTION</string>
|
||||||
</config-file>
|
</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">
|
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
|
||||||
<string></string>
|
<string></string>
|
||||||
</config-file>
|
</config-file>
|
||||||
|
Loading…
Reference in New Issue
Block a user