AI Integration Quick Reference
AI Integration Quick Reference
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
Add the dependency to yourpubspec.yaml:
pubspec.yaml
Step 2: Update build.gradle
SetminSdkVersion to at least 26 in android/app/build.gradle:
- Groovy
Step 3: Update iOS Podfile
Inios/Podfile, set the minimum iOS version to 15.1:
These are the Calls SDK’s own floors (
minSdkVersion 26, platform :ios, '15.1' as of
cometchat_calls_sdk 5.0.7), and they apply to every UI Kit app — the kit depends on the Calls
SDK unconditionally, so you inherit them even without enabling calling. Gradle and CocoaPods take
the maximum across the dependency graph, so a lower value is a build error rather than a warning.Step 4: Modify UIKitSettings
Activate calling features by settingenableCalls to true in UIKitSettings:
- Dart
- Dart
Listeners
Register call listeners for top-level widgets:- Dart