From 43d61b5ae6479da8c847fc97a4ff0dcb08cd2ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=82=D0=B2=D1=96=D0=B9=20=D0=90=D0=BB=D1=8C?= =?UTF-8?q?=D0=B1=D1=83=D0=BA=D0=B5=D1=80=D0=BA=D0=B5?= Date: Thu, 19 Apr 2018 01:47:17 -0300 Subject: [PATCH 1/2] docs(README): add Camera & Microphone permissions info under iOS Closes #37 --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f033e717..b5d17f73 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,15 @@ 10. Add the contents from the `Bridging-Header.h` file in `../node_modules/opentok-react-native/ios` to `-Bridging-Header.h` +11. Ensure you have enabled both camera and microphone usage by adding the following entries to your `Info.plist` file: + +``` +NSCameraUsageDescription +Your message to user when the camera is accessed for the first time +NSMicrophoneUsageDescription +Your message to user when the microphone is accessed for the first time +``` + ### Android Installation 1. In you terminal, change into your project directory. @@ -234,4 +243,4 @@ The `OTSubscriber` component will subscribe to a specified stream from a specifi ## Contributing -If you make changes to the project that you would like to contribute back then please follow the [contributing guidelines](CONTRIBUTING.md). All contributions are greatly appreciated! \ No newline at end of file +If you make changes to the project that you would like to contribute back then please follow the [contributing guidelines](CONTRIBUTING.md). All contributions are greatly appreciated! From b907a40858916ef48305c899d0b9b028016767a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=82=D0=B2=D1=96=D0=B9=20=D0=90=D0=BB=D1=8C?= =?UTF-8?q?=D0=B1=D1=83=D0=BA=D0=B5=D1=80=D0=BA=D0=B5?= Date: Thu, 19 Apr 2018 01:59:50 -0300 Subject: [PATCH 2/2] docs(README): add Camera & Microphone permissions info under Android --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b5d17f73..c5e9edb9 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,19 @@ 6. Make sure the following in your app's gradle `compileSdkVersion`, `buildToolsVersion`, `minSdkVersion`, and `targetSdkVersion` are the same in the OpenTok React Native library. +7. As for the older Android devices, ensure you add camera and audio permissions to your `AndroidManifest.xml` file: + +```xml + + + + + + +``` + +Newer versions of Android–`API Level 23` (Android 6.0)–have a different permissions model that is already handled by this lib. + ## API Reference The `OpenTok React Native` library comprises of: