This guide walks you through installing the CometChat Calls SDK and configuring it in your React Native application.Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-v6-beta2-flutter-uikit.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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