From 1e4658ff9464a660be24326d881cd99c7715e371 Mon Sep 17 00:00:00 2001 From: Santhosh Vaiyapuri Date: Mon, 2 Oct 2023 17:03:15 +0200 Subject: [PATCH] seitch on and offf vale appropriately --- .../docs/reactnative/02-tutorials/01-video-calling.mdx | 1 + .../docs/reactnative/02-tutorials/02-audio-room.mdx | 1 + .../docs/reactnative/02-tutorials/03-livestream.mdx | 1 + .../03-ringing-setup/01-react-native.mdx | 3 ++- .../04-other-than-ringing-setup/02-expo.mdx | 1 - sample-apps/react-native/dogfood/ios/Podfile.lock | 4 ++-- 6 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/01-video-calling.mdx b/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/01-video-calling.mdx index d2ccf04dd8..e389c2d9d2 100644 --- a/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/01-video-calling.mdx +++ b/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/01-video-calling.mdx @@ -98,6 +98,7 @@ Add the following in your `AppDelegate.m` or `AppDelegate.mm` file: + #### Declare permissions Application needs permissions to access camera, microphone and network state. diff --git a/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/02-audio-room.mdx b/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/02-audio-room.mdx index 74916e23c5..d36c7a942c 100644 --- a/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/02-audio-room.mdx +++ b/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/02-audio-room.mdx @@ -169,6 +169,7 @@ android { } ``` + In `android/gradle.properties` add the following: ```groovy diff --git a/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/03-livestream.mdx b/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/03-livestream.mdx index 8a670e45c7..c5b8446674 100644 --- a/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/03-livestream.mdx +++ b/packages/react-native-sdk/docusaurus/docs/reactnative/02-tutorials/03-livestream.mdx @@ -185,6 +185,7 @@ In `android/gradle.properties` add the following: android.enableDexingArtifactTransform.desugaring=false ``` + #### Run the app To ensure the best possible experience, we highly recommend running the app on a physical device. diff --git a/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/03-ringing-setup/01-react-native.mdx b/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/03-ringing-setup/01-react-native.mdx index 61e51836c7..8a16396d9e 100644 --- a/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/03-ringing-setup/01-react-native.mdx +++ b/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/03-ringing-setup/01-react-native.mdx @@ -71,13 +71,14 @@ The **google-services.json** file contains unique and non-secret identifiers of ### Request for notification permissions At an appropriate place in your app, request for notification permissions from the user. Below is a small example of how to request permissions using [`react-native-permissions`](https://github.com/zoontek/react-native-permissions) library: + ```js import { requestNotifications } from 'react-native-permissions'; await requestNotifications(['alert', 'sound']); ``` - + ## iOS-specific setup ### Disable Firebase installation diff --git a/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/04-other-than-ringing-setup/02-expo.mdx b/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/04-other-than-ringing-setup/02-expo.mdx index 2625d85e38..316b40e3ab 100644 --- a/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/04-other-than-ringing-setup/02-expo.mdx +++ b/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/04-other-than-ringing-setup/02-expo.mdx @@ -200,7 +200,6 @@ import * as Notifications from 'expo-notifications'; await Notifications.requestPermissionsAsync(); ``` - ## Troubleshooting - During development, you may be facing a situation where push notification is shown but its events like accepting or rejecting a call don't work. This is because, during hot module reloading the global event listeners may get de-registered. To properly test during development, make sure that you fully restart the app or test in release mode without the metro packager. diff --git a/sample-apps/react-native/dogfood/ios/Podfile.lock b/sample-apps/react-native/dogfood/ios/Podfile.lock index 1f634773e1..e9af40f754 100644 --- a/sample-apps/react-native/dogfood/ios/Podfile.lock +++ b/sample-apps/react-native/dogfood/ios/Podfile.lock @@ -523,7 +523,7 @@ PODS: - stream-react-native-webrtc (104.0.1): - React-Core - WebRTC-SDK (= 104.5112.17) - - stream-video-react-native (0.0.15): + - stream-video-react-native (0.0.28): - React-Core - stream-react-native-webrtc - TOCropViewController (2.6.1) @@ -834,7 +834,7 @@ SPEC CHECKSUMS: RNVoipPushNotification: 1617f5a07be24066830213ae9252cb790b53886f SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 stream-react-native-webrtc: 3e45950d539248d24c1a0a3eafa0f98b5a343ab3 - stream-video-react-native: f1a2d487b0cf3212bf587dbd73def67937f1486d + stream-video-react-native: 9561dc08c83157d1ed8b12eee97417d0df7fcd75 TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863 WebRTC-SDK: 082ae4893212534a779ca233f19a9df8efd5f3bd Yoga: f7decafdc5e8c125e6fa0da38a687e35238420fa