Skip to main content
Quick Reference for AI Agents & DevelopersKey Migration Changes (v3 → v4):
  • Chat SDK Import: Replace all v3 imports with single import:
    import 'package:cometchat_sdk/cometchat_sdk.dart';
    
  • Calling SDK Import: Replace all v3 imports with single import:
    import 'package:cometchat_calls_sdk/cometchat_calls_sdk.dart';
    
  • Setup: Follow the updated Setup Guide for v4 installation
Migration Steps:
  1. Update pubspec.yaml with v4 SDK versions
  2. Replace all v3 import statements with new unified imports
  3. Run flutter pub get to install updated dependencies
  4. Test your application for any breaking changes
Upgrading from v3.x to v4 is fairly simple. Below are the major changes that are released as a part of CometChat v4: Please follow the Setup instructions to upgrade to the latest V4 version.

Chat Import Change

Remove all the imports of CometChat Flutter v3 SDK or replace it with single import statement
import 'package:cometchat_sdk/cometchat_sdk.dart';

Calling Import Change

Remove all the imports of CometChat Flutter v3 SDK or replace it with single import statement
import 'package:cometchat_calls_sdk/cometchat_calls_sdk.dart';

Next Steps