diff --git a/docs/dev-guide/react-native-sdk.md b/docs/dev-guide/react-native-sdk.md index c86a38c1b..2f4e88a20 100644 --- a/docs/dev-guide/react-native-sdk.md +++ b/docs/dev-guide/react-native-sdk.md @@ -51,8 +51,9 @@ module.exports = (async () => { ``` -### Android permissions +### Android +#### Permissions - In `android/app/src/debug/AndroidManifest.xml` and `android/app/src/main/AndroidManifest.xml`, under the `` tag, please include ```xml @@ -66,6 +67,9 @@ module.exports = (async () => { ``` + + +#### Services - In `android/app/src/main/AndroidManifest.xml`, under the `` tag, please include the following service: ```xml { ``` This enables the screen share feature. -### iOS permissions +### iOS +#### Permissions - React Native SDK requests camera and microphone access, make sure to include the required entries for `NSCameraUsageDescription` and `NSMicrophoneUsageDescription`in your `Info.plist` file. - React Native SDK shows and hides the status bar based on the conference state, you may want to set `UIViewControllerBasedStatusBarAppearance` to `NO` in your `Info.plist` file. - For starting screen sharing React Native SDK provides the UI to present the `RPSystemBroadcastPickerView` to the user. By default, the picker will display a list of all the available broadcast providers. In order to limit the picker to our particular broadcast provider, we have to set `preferredExtension` to the bundle identifier of the broadcast extension. We are doing this by adding a new key named `RTCScreenSharingExtension` to the app's Info.plist and setting the broadcast extension bundle identifier as the value. - Make sure `voip` is added to `UIBackgroundModes`, in the app's `Info.plist`, in order to work when the app is in the background. + + +#### Build Phases + +##### Run Script Phases +- For the sounds to work please add the following script in Xcode: + ```shell + SOUNDS_DIR="${PROJECT_DIR}/../node_modules/@jitsi/react-native-sdk/sounds" + cp $SOUNDS_DIR/* ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ + ``` + + ## JitsiMeeting props