From 5e9e0edb790c8b8723f628673f416a043a7e667a Mon Sep 17 00:00:00 2001 From: Andrew Blair Date: Mon, 6 Feb 2017 16:38:18 -0800 Subject: [PATCH] Added important notes about iOS 10 privacy rules about needing to define strings for `NSCameraUsageDescription` and `NSMicrophoneUsageDescription` --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b607808..0667d2c 100644 --- a/README.md +++ b/README.md @@ -314,15 +314,15 @@ Ends the current capture session for video captures. Only applies when the curre #### `iOS` `Camera.checkDeviceAuthorizationStatus(): Promise` -Exposes the native API for checking if the device has authorized access to the camera (camera and microphone permissions). Can be used to call before loading the Camera component to ensure proper UX. The promise will be fulfilled with `true` or `false` depending on whether the device is authorized. +Exposes the native API for checking if the device has authorized access to the camera (camera and microphone permissions). Can be used to call before loading the Camera component to ensure proper UX. The promise will be fulfilled with `true` or `false` depending on whether the device is authorized. Note, [as of iOS 10](https://developer.apple.com/library/content/documentation/AudioVideo/Conceptual/PhotoCaptureGuide/#//apple_ref/doc/uid/TP40017511-CH1-DontLinkElementID_3), you will need to add `NSCameraUsageDescription` and `NSMicrophoneUsageDescription` to your XCode project's Info.plist file or you might experience a crash. #### `iOS` `Camera.checkVideoAuthorizationStatus(): Promise` -The same as `Camera.checkDeviceAuthorizationStatus()` but only checks the camera permission. +The same as `Camera.checkDeviceAuthorizationStatus()` but only checks the camera permission. Note, as of iOS 10, you will need to add `NSCameraUsageDescription` to your XCode project's Info.plist file or you might experience a crash. #### `iOS` `Camera.checkAudioAuthorizationStatus(): Promise` -The same as `Camera.checkDeviceAuthorizationStatus()` but only checks the microphone permission. +The same as `Camera.checkDeviceAuthorizationStatus()` but only checks the microphone permission. Note, as of iOS 10, you will need to add `NSMicrophoneUsageDescription` to your XCode project's Info.plist file or you might experience a crash. ## Subviews This component supports subviews, so if you wish to use the camera view as a background or if you want to layout buttons/images/etc. inside the camera then you can do that.