Overview
CometChat’s Calls feature allows you to integrate one-on-one and group audio/video calling capabilities into your application. In V6, calling is built into thecometchat_chat_uikit package — no separate calls dependency needed.
Integration
Step 1: Add Dependency
Since V6 is hosted on Cloudsmith, install via CLI:- Dart
pubspec.yaml:
- Dart
Step 2: Update build.gradle
SetminSdkVersion to at least 24 in android/app/build.gradle:
- Groovy
Step 3: Update iOS Podfile
Inios/Podfile, set the minimum iOS version to 12:
Step 4: Modify UIKitSettings
Activate calling features by settingenableCalls to true in UIKitSettings:
- Dart
- Dart
Listeners
Register call listeners for top-level widgets:- Dart