
Improvements in v3.0
- Faster connection & response times
- Higher rate limits
- Supports up to 100K users in a group
- Unlimited groups
- Support for Transient Messages
- Real-time user & group members count And more!
I want to checkout Android Kotlin UI Kit.
Follow the steps mentioned in the
README.md
file.Kindly, click on below button to download our Android Kotlin Chat UI Kit.Kotlin Chat UI KitView on GithubI want to explore sample apps.
Import the app into Android Studio and follow the steps mentioned in the
README.md
file.Kindly, click on below button to download our Java Sample App.Kotlin Sample AppView on GithubPrerequisites ⭐
Before you begin, ensure you have met the following requirements: ✅ You have Android Studio installed on your machine. ✅ You have an Android Device or Emulator with Android Version 6.0 or above. ✅ You have read Key Concepts.Installing Android Kotlin Chat UI Kit
Setup 🔧
To install Android Kotlin UI Kit, you need to first register on CometChat Dashboard. Click here to sign up.Get your Application Keys 🔑
- Create a new app
- Head over to the Quick Start or API & Auth Keys section and note the App ID, Auth Key, and Region.

Add the CometChat Dependency
First, add the repository URL to the project levelbuild.gradle
file in the repositories block under the allprojects
section.
build.gradle
file and
- Add the below two line in the
dependencies
section.
- Add the below lines
android
section
Documentation
Configure CometChat inside your app
Initialize CometChat 🌟
Theinit()
method initializes the settings required for CometChat. Please make sure to call this method before calling any other methods from CometChat SDK.
Make sure you replace the APP_ID with your CometChat APP ID and REGION with your app’s REGION in the above code.
Login User 👤
Thelogin()
method returns the User object containing all the information of the logged-in user.
Make sure you replace the AUTH_KEY with your CometChat AUTH Key in the above code. We have setup 5 users for testing having UIDs: cometchat-uid-1, cometchat-uid-2, cometchat-uid-3, cometchat-uid-4 and cometchat-uid-5.
Add the Android Kotlin UI Kit Library
To integrate the UI Kit, please follow the steps below:- Clone the UI Kit-Kotlin Library from the android-kotlin-chat-ui-kit repository
- Import
uikit-kotlin
Module from Module Settings - If the Library is added successfully, it will look like mentioned in the below image.

Configure Kotlin UI Kit Library
To use UI Kit you have to add Material Design support in your app as the UI Kit uses Material Design Components.- Add Material Design Dependency in build.gradle
- Make sure that your app’s theme should extend
Theme.MaterialComponents
. Follow the guide on Getting started Material Components
Theme.MaterialComponents.NoActionBar
- Theme.MaterialComponents.Light.NoActionBar
- Theme.MaterialComponents.DayNight.NoActionBar
Enable DataBindingAs the UI Kit uses DataBinding you must enable DataBinding
build.gradle
file in the app module, as shown in the following example:
importantWe are using File Provider for storage & file access. So you need to add your application package name in manifestPlaceholders
Launch CometChatUI 🚀

CometChatUI
.