Skip to main content

Installation & Setup

SymptomCauseFix
pod install failsCocoaPods version too old or spec repo outdatedRun pod repo update and ensure CocoaPods 1.10+
SPM resolution failsIncorrect package URL or versionVerify the package URL and version in Xcode’s package dependencies
init() fails silentlyInvalid App ID or RegionDouble-check credentials from the CometChat Dashboard
Linker errors after installMissing frameworksEnsure CometChatCallsSDK is added to “Frameworks, Libraries, and Embedded Content”

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 call init() and wait for completion 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 via AVCaptureDevice.requestAccess
joinSession() throws errorInvalid or expired tokenGenerate a fresh token using generateToken() before joining

Audio & Video

SymptomCauseFix
No audio from remote participantsAudio session category misconfiguredEnsure AVAudioSession category is set to .playAndRecord with .defaultToSpeaker
Camera not workingMissing NSCameraUsageDescription in Info.plistAdd camera usage description to your Info.plist
Microphone not workingMissing NSMicrophoneUsageDescription in Info.plistAdd microphone usage description to your Info.plist

CallKit & VoIP

SymptomCauseFix
VoIP push notifications not receivedMissing VoIP certificate or entitlementEnable Push Notifications and Voice over IP in Xcode capabilities. See VoIP Calling
CallKit UI not showingCallKit not configuredImplement CXProvider delegate and report incoming calls. See VoIP Calling
Call drops when app enters backgroundBackground mode not enabledEnable “Audio, AirPlay, and Picture in Picture” and “Voice over IP” background modes