diff --git a/README.md b/README.md index f033e717..c5e9edb9 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. @@ -97,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: @@ -234,4 +256,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!