App ID
, AuthKey
, and Region
of your CometChat application when initializing the SDK.
i. Register on CometChat
Each CometChat application can be integrated with a single client app. Within the same application, users can communicate with each other across all platforms, whether they are on mobile devices or on the web.iii. IDE Setup
pubspec.yaml
file:
android/app/build.gradle
file and modify the minSdkVersion
property within the defaultConfig
section.
minSdkVersion
to 24 in your android/app/build.gradle
file.
flutter_calling_ui_kit
dependency to your project’s pubspec.yaml
file.
ios/Podfile
, update the minimum iOS version that your project supports to 12.
UIKitSettings
Class. It is intended for use primarily during proof-of-concept (POC) development or in the early stages of application development. You can use Auth Token method to login securely.Make sure to replace the APP_ID with your CometChat appId, AUTH_KEY with your CometChat app auth key and REGION with your app region in the above code.
UID
. You can create your own users on the CometChat Dashboard or via API. We have pre-generated test users: cometchat-uid-1
, cometchat-uid-2
, cometchat-uid-3
, cometchat-uid-4
, cometchat-uid-5
.
The login()
method returns the User object containing all the information of the logged-in user.