Skip to content

Commit

Permalink
docs: proper permission explanations in expo config plugin for ringing
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshvai committed Oct 2, 2024
1 parent d33f188 commit d77694a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ So what did we install precisely?

- `@stream-io/video-react-native-sdk` (SVRN) is Stream's Video SDK which contains UI components, hooks and util functions that will enable audio/video calls.
- `@stream-io/react-native-webrtc` is a WebRTC module for React Native, SVRN depends on this dependency, it's components and utilities to render audio/video tracks and interact with the phone's media devices.
- `@config-plugins/react-native-webrtc` is the expo config plugin for the WebRTC module for React Native.
- `@config-plugins/react-native-webrtc` Config plugin to auto-configure `@stream-io/react-native-webrtc` when the native code is generated (`npx expo prebuild`).
- `react-native-incall-manager` handles media-routes/sensors/events during an audio/video call.
- `react-native-svg` provides SVG support to React Native, SVRN's components and it's icons are reliant on this dependency.
- `@react-native-community/netinfo` - is used to detect the device's connectivity state, type and quality.
Expand Down Expand Up @@ -73,9 +73,9 @@ Add the config plugin for [`@stream-io/video-react-native-sdk`](https://github.c
[
"@config-plugins/react-native-webrtc",
{
// optionally you can add your own explanations for permissions on iOS
"cameraPermission": "Allow $(PRODUCT_NAME) to access your camera",
"microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone"
// add your explanations for camera and microphone
"cameraPermission": "$(PRODUCT_NAME) requires camera access in order to capture and transmit video",
"microphonePermission": "$(PRODUCT_NAME) requires microphone access in order to capture and transmit audio"
}
]
// highlight-end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ In **app.json**, in the `plugins` field, add the `ringingPushNotifications` prop
],
// highlight-next-line
"@config-plugins/react-native-callkeep",
[
// highlight-next-line
"@config-plugins/react-native-webrtc",
{
"cameraPermission": "$(PRODUCT_NAME) requires camera access in order to capture and transmit video",
"microphonePermission": "$(PRODUCT_NAME) requires microphone access in order to capture and transmit audio"
}
],
// highlight-next-line
"@react-native-firebase/app",
[
Expand Down
4 changes: 2 additions & 2 deletions sample-apps/react-native/expo-video-sample/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
[
"@config-plugins/react-native-webrtc",
{
"cameraPermission": "Allow $(PRODUCT_NAME) to access your camera",
"microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone"
"cameraPermission": "$(PRODUCT_NAME) requires camera access in order to capture and transmit video",
"microphonePermission": "$(PRODUCT_NAME) requires microphone access in order to capture and transmit audio"
}
],
[
Expand Down

0 comments on commit d77694a

Please sign in to comment.