Quick Reference - Key Expo setup steps:
Add the CometChatCalls Dependency
To add CometChat Calls SDK, please refer to the steps mentioned here.
Permissions
Our React Native Calls SDK does not work with Expo GO since it requires some custom native modules. Also, expo does not recommend using Expo GO for building production grade apps. So in order to use our Calls SDK in an expo app you need to use development builds. You can follow the official Expo guide for more details.Android
You need to add the belowpermissions & plugin block inside android block of the app.json file. You need to install expo-build-properties package in your app.
- app.json
iOS
You need to add the belowpermissions block inside ios block of the app.json file.
- app.json
Initialize CometChat Calls
To initialize CometChat Calls SDK, please refer to the guide here
Troubleshooting
Build fails with native module errors
Build fails with native module errors
Ensure you’re using a development build, not Expo GO. Run
npx expo prebuild followed by npx expo run:android or npx expo run:ios to create a development build with native modules.Android build fails with minSdkVersion error
Android build fails with minSdkVersion error
Verify that
minSdkVersion is set to at least 24 in the expo-build-properties plugin config. The CometChat Calls SDK requires Android API level 24 or higher.Camera or microphone not working on iOS
Camera or microphone not working on iOS
Check that
NSCameraUsageDescription and NSMicrophoneUsageDescription are set in the infoPlist block of your app.json. Without these, iOS will silently deny access to camera and microphone.