Faster Integration with UI KitsIf you’re using CometChat UI Kits, voice and video calling can be quickly integrated:
- Incoming & outgoing call screens
- Call buttons with one-tap calling
- Call logs with history
Add the CometChat Dependency
Using npm
Using Yarn
iOS Configuration
Install CocoaPods Dependencies
Navigate to your iOS directory and install the pods:Add Permissions
Add the required permissions to yourios/YourApp/Info.plist:
Enable Background Modes
For calls to continue when the app is in the background:- Open your project in Xcode
- Select your target and go to Signing & Capabilities
- Click + Capability and add Background Modes
- Enable:
- Audio, AirPlay, and Picture in Picture
- Voice over IP (if using VoIP push notifications)
Android Configuration
Add Repository
Add the CometChat repository to your project levelandroid/build.gradle:
Configure Java Version
Add Java 8 compatibility to your app levelandroid/app/build.gradle:
Add Permissions
Add the required permissions to yourandroid/app/src/main/AndroidManifest.xml:
For Android 6.0 (API level 23) and above, you must request camera and microphone permissions at runtime before starting a call.
Request Runtime Permissions
Use a library likereact-native-permissions or implement native permission requests:
Verify Installation
After installation, rebuild your app:Related Documentation
- Authentication - Initialize the SDK and authenticate users
- Join Session - Start your first call