Skip to main content

Overview

This guide walks you through adding voice and video calling capabilities to your Android application using the CometChat UI Kit.
Make sure you’ve completed the Getting Started guide before proceeding.
enableCalling: true makes the Calls SDK dependency mandatory — otherwise the app crashes at launch. With the flag set, CometChatUIKit.initFromSettings() calls initCometChatCalls(), which throws if com.cometchat:calls-sdk-android is absent:
The crash happens in onCreate, before any UI renders — the flag name gives no hint that a dependency is implied. Change the flag and the dependency together, or leave enableCalling as false in an app that does not use calling.

Add the Calls SDK

Add the CometChat Calls SDK dependency alongside your chosen UI Kit module:
build.gradle.kts
After adding this dependency, the Android UI Kit will automatically detect it and activate the calling features. You will see the CometChatCallButtons component rendered in the MessageHeader component.

Set Up Call Listener

To receive incoming calls globally in your app, add a CallListener before initializing the CometChat UI Kit. We recommend creating a custom Application class: