From 7131bd2f54973f3d7d29154946cfcd1b447e042e Mon Sep 17 00:00:00 2001 From: Santhosh Vaiyapuri Date: Wed, 2 Oct 2024 14:35:13 +0200 Subject: [PATCH] docs: add info about expo prebuild --- .../docs/reactnative/01-setup/02-installation/02-expo.mdx | 2 ++ .../04-push-notifications/03-ringing-setup/02-expo.mdx | 2 ++ .../04-other-than-ringing-setup/02-expo.mdx | 2 ++ 3 files changed, 6 insertions(+) diff --git a/packages/react-native-sdk/docusaurus/docs/reactnative/01-setup/02-installation/02-expo.mdx b/packages/react-native-sdk/docusaurus/docs/reactnative/01-setup/02-installation/02-expo.mdx index 2e6717766b..fcd8123a4a 100644 --- a/packages/react-native-sdk/docusaurus/docs/reactnative/01-setup/02-installation/02-expo.mdx +++ b/packages/react-native-sdk/docusaurus/docs/reactnative/01-setup/02-installation/02-expo.mdx @@ -84,6 +84,8 @@ Add the config plugin for [`@stream-io/video-react-native-sdk`](https://github.c } ``` +If Expo EAS build is not used, please do `npx expo prebuild --clean` to generate the native directories again after adding the config plugins. + :::infoINFO Permissions need to be granted by the user as well. Requests for Camera and Microphone usage are automatically asked when the stream is first requested by the app. But other permissions like `BLUETOOTH_CONNECT` in Android need to be requested manually. However, we recommend that all necessary permissions be manually asked at an appropriate place in your app for the best user experience. diff --git a/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/03-ringing-setup/02-expo.mdx b/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/03-ringing-setup/02-expo.mdx index 6e5c993ed7..86df3e40b2 100644 --- a/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/03-ringing-setup/02-expo.mdx +++ b/packages/react-native-sdk/docusaurus/docs/reactnative/06-advanced/04-push-notifications/03-ringing-setup/02-expo.mdx @@ -134,6 +134,8 @@ In **app.json**, in the `plugins` field, add the `ringingPushNotifications` prop - For iOS only, since `firebase-ios-sdk` requires `use_frameworks` then you want to configure `expo-build-properties` by adding `"useFrameworks": "static"`. ::: +If Expo EAS build is not used, please do `npx expo prebuild --clean` to generate the native directories again after adding the config plugins. + ## Optional: Disable Firebase initialisation on iOS React Native Firebase Messaging automatically registers the device with APNs to receive remote messages. But since we do not use Firebase on iOS, we can disable it via the `firebase.json` file that we can newly create: 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 a322e721ae..037db7a945 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 @@ -69,6 +69,8 @@ In **app.json**, in the `plugins` field, add true to the `enableNonRingingPushNo } ``` +If Expo EAS build is not used, please do `npx expo prebuild --clean` to generate the native directories again after adding the config plugins. + ## Setup the push config for the SDK The SDK automatically processes the non ringing call push notifications once the setup above is done if the push config has been set using `StreamVideoRN.setPushConfig`. To do this follow the steps below,