📲 Download the Sample iOS app here: COMING SOON
📱 Download the Sample Android app here: https://appdistribution.firebase.dev/i/e977b56536d45796
Before continuing, let's keep an eye on the third-party libraries used in this repository.
- React Native CallKeep
- React Native VoIP Push Notification
- VideoSDK RN Android Overlay Permission
- React Native Firebase - Messaging
- React Native Firebase - Firestore
Clone the repository to your local environment.
https://github.com/videosdk-live/videosdk-rtc-react-native-call-trigger-example.git
cd client
Open your favorite code editor and copy .env.example
to .env
file.
cp.env.example.env;
Generate temporary token from Video SDK Account and add it to .env
file.
REACT_APP_VIDEOSDK_TOKEN = "TEMPORARY-TOKEN";
Please follow the guidance of iOS setup
npm install
cd ios && pod install
npm run ios
- Replace your firebase app
google-services.json
file at/android/app/google-services.json
- Create web app in your firebase project and replace configuration at
client/database/firebaseDb.js
- Add
users
collection in firestore database.
npm install
npm run android
After successfully installing the app, app will ask Display over other apps
and Access phone accounts
permission.
For an app to handle calls in a dead or background state, both permissions are required.
Now, different device have different ways to allow call account permissions.
Click on All calling accounts
and allow the app to receive call.
NOTE : It is necesary to setup local server before run the project.
cd server
Download private Key from firebase and repplace it with server/serviceAccountKey.json
npm install
npm run start
Add Local server ip address in client/api/api.js
file.
const FCM_SERVER_URL = "http://192.168.1.10:9000";
You can generate the issue on Github or ping us on Discord
- Samsung
- Xiomi
- Realme
- Oppo