Skip to main content

Installation & Setup

SymptomCauseFix
pub get failsIncorrect package name or versionVerify cometchat_calls_sdk is correctly added to pubspec.yaml
init() fails silentlyInvalid App ID or RegionDouble-check credentials from the CometChat Dashboard
iOS build failsCocoaPods issueRun cd ios && pod install --repo-update
Android build failsminSdkVersion too lowSet minSdkVersion to 21 or higher in android/app/build.gradle

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 using permission_handler package
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 at OS levelCheck app permissions in device settings
Black video tilesCamera permission not grantedRequest permissions before joining the session

Platform-Specific

SymptomCauseFix
iOS crash on call joinMissing usage descriptions in Info.plistAdd NSCameraUsageDescription and NSMicrophoneUsageDescription to ios/Runner/Info.plist
Android crash on call joinMissing runtime permissionsRequest CAMERA and RECORD_AUDIO permissions at runtime
VoIP not working on iOSMissing VoIP entitlementEnable Push Notifications and Voice over IP capabilities. See VoIP Calling
Background call dropsOS kills the appSee Background Handling for platform-specific setup

Picture-in-Picture

SymptomCauseFix
PiP not working on iOSiOS version below 15Ensure iOS 15+ and background mode enabled
PiP not working on AndroidMissing manifest attributeAdd android:supportsPictureInPicture="true" to activity in AndroidManifest.xml. See PiP