Skip to content
Permalink
Browse files
Add mandatory iOS 10 privacy description for microphone
 This closes #70
  • Loading branch information
leshik authored and stevengill committed Sep 8, 2016
1 parent a98c11d commit 5a685a6d519b7be658bd92e11fa08631d05adc8f
Showing 2 changed files with 8 additions and 1 deletion.
@@ -200,16 +200,18 @@ object featuring a `CaptureError.CAPTURE_NO_MEDIA_FILES` error code.

### 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`, `NSMicrophoneUsageDescription` and `NSPhotoLibraryUsageDescriptionentry` in the info.plist.

* `NSCameraUsageDescription` describes the reason that the app accesses the user’s camera.
* `NSMicrophoneUsageDescription` describes the reason that the app accesses the user’s microphone.
* `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`
* `MICROPHONE_USAGE_DESCRIPTION` for `NSMicrophoneUsageDescription`
* `PHOTOLIBRARY_USAGE_DESCRIPTION` for `NSPhotoLibraryUsageDescriptionentry`

-
@@ -151,6 +151,11 @@ xmlns:rim="http://www.blackberry.com/ns/widgets"
<string>$CAMERA_USAGE_DESCRIPTION</string>
</config-file>

<preference name="MICROPHONE_USAGE_DESCRIPTION" default=" " />
<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
<string>$MICROPHONE_USAGE_DESCRIPTION</string>
</config-file>

<preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default=" " />
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
<string>$PHOTOLIBRARY_USAGE_DESCRIPTION</string>

0 comments on commit 5a685a6

Please sign in to comment.