This reference application showcases the integration of CometChat's Flutter UI Kit within an Flutter framework. It provides developers with examples of implementing real-time messaging and voice and video calling features in their Flutter-based applications.
- XCode for iOS and Android Studio for Android
- pod (CocoaPods) for iOS
- Android device or emulator with Android version 5.0 or above.
- An iOS device or emulator with iOS 12.0 or above.
- Sign up for a CometChat account to get your app credentials:
App ID
,Region
, andAuth Key
-
Clone the repository:
git clone https://github.com/cometchat/cometchat-sample-app-flutter.git
-
Navigate to the project directory:
cd cometchat-sample-app-flutter
-
Install flutter dependencies
flutter pub get
-
Enter your CometChat
App ID
,Region
, andAuth Key
in the lib/app_constants.dart file:cometchat-sample-app-flutter/lib/app_constants.dart
Lines 1 to 5 in 68a5a32
-
If your app is created before August 12th, 2024 then change the sample data URL to
https://assets.cometchat.io/sampleapp/v1/sampledata.json
in the lib/services/api_services.dart file:cometchat-sample-app-flutter/lib/services/api_services.dart
Lines 13 to 15 in 68a5a32
-
For iOS, install dependencies after navigating to ios :
cd ios pod install
If you are facing any issue with pod install, you can try running the following command:
pod update
-
Open a Simulator or connect a physical device.
-
Run the app on a device or emulator from the repo root.
flutter run
For issues running the project or integrating with our UI Kits, consult our documentation or create a support ticket or seek real-time support via the CometChat Dashboard.