Skip to main content

Installation & Setup

SymptomCauseFix
CometChatCalls is not definedSDK not installed or not linkedRun npm install @cometchat/calls-sdk-react-native and rebuild
init() fails silentlyInvalid App ID or RegionDouble-check credentials from the CometChat Dashboard
Build fails on iOSCocoaPods not installed or outdatedRun cd ios && pod install after adding the SDK
Build fails on AndroidMissing native dependenciesRun npx react-native link or rebuild with npx react-native run-android

Authentication

SymptomCauseFix
login() fails with invalid UIDUID doesn’t exist in CometChatCreate the user via Dashboard or REST API first
Auth token expiredToken has a limited lifetimeGenerate a new auth token and call login() again
login() called before init()SDK not initializedAlways await CometChatCalls.init() before calling login()

Joining a Session

SymptomCauseFix
generateToken() failsUser not logged in or invalid session IDEnsure login() completes before generating a token
Session joins but no audio/videoPermissions not grantedRequest camera and microphone permissions before joining. See platform permission guides
joinSession() throws errorInvalid or expired tokenGenerate a fresh token using generateToken() before joining

Audio & Video

SymptomCauseFix
No audio from remote participantsAudio routing issueCheck Audio Modes for speaker/earpiece configuration
Camera not workingPermission denied or another app using cameraCheck app permissions in device settings
Black video tilesCamera permission not granted at OS levelRequest permissions using react-native-permissions or similar library

Platform-Specific

SymptomCauseFix
App crashes on iOS when joining callMissing microphone usage descriptionAdd NSMicrophoneUsageDescription and NSCameraUsageDescription to Info.plist
Android build fails with duplicate classesConflicting WebRTC dependenciesExclude duplicate transitive dependencies in build.gradle
VoIP push notifications not working on iOSMissing VoIP certificate or CallKit setupSee VoIP Calling for complete setup
Background call drops on AndroidApp killed by OS in backgroundSee Background Handling for foreground service setup

Picture-in-Picture

SymptomCauseFix
PiP not working on iOSiOS version below 15 or missing entitlementEnsure iOS 15+ and PiP background mode is enabled
PiP not working on AndroidMissing supportsPictureInPicture in manifestAdd PiP activity attribute in AndroidManifest.xml. See PiP