Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Key changes from v3 to v4:
  • Chat SDK: cometchat_sdk (replaces cometchat_pro_sdk)
  • Calls SDK: cometchat_calls_sdk (replaces cometchat_pro_calls_sdk)
  • Import: import 'package:cometchat_sdk/cometchat_sdk.dart'
  • Import Calls: import 'package:cometchat_calls_sdk/cometchat_calls_sdk.dart'
Upgrading from v3 to v4 is straightforward — the API surface is the same, only the package names and imports changed. Follow the v4 setup instructions first, then update your dependencies and imports as shown below.

Update Dependencies

SDKv3 Packagev4 Package
Chat SDKcometchat_pro_sdkcometchat_sdk
Calls SDKcometchat_pro_calls_sdkcometchat_calls_sdk
Remove the v3 packages from pubspec.yaml and add the v4 packages:
dependencies:
  cometchat_sdk: ^4.0.33        # replaces cometchat_pro_sdk
  cometchat_calls_sdk: ^4.0.0   # replaces cometchat_pro_calls_sdk
Then run:
flutter pub get

Update Import Statements

Find and replace all import statements across your project:
SDKv3 Importv4 Import
Chat SDKimport 'package:cometchat_pro_sdk/cometchat_pro_sdk.dart'import 'package:cometchat_sdk/cometchat_sdk.dart'
Calls SDKimport 'package:cometchat_pro_calls_sdk/cometchat_pro_calls_sdk.dart'import 'package:cometchat_calls_sdk/cometchat_calls_sdk.dart'
// v4 Chat SDK
import 'package:cometchat_sdk/cometchat_sdk.dart';

// v4 Calls SDK
import 'package:cometchat_calls_sdk/cometchat_calls_sdk.dart';
The API methods, class names, and listener interfaces are unchanged between v3 and v4. Once you update the packages and imports, your existing code should work without further modifications.

Next Steps

Setup SDK

Install and configure the CometChat Flutter SDK

Key Concepts

Learn the core concepts behind CometChat v4