> ## Content Index
> Fetch the complete content index at: https://talkjs.com/resources/llms.txt
> Use this file to discover other available public pages before exploring further.

# Ready-made chat UI for Android with Jetpack Compose
- URL: https://talkjs.com/resources/android-components/
- Published: 2026-12-03T12:00:00.000Z
- Updated: 2026-12-03T16:11:00.000Z
- Description: Drop a chatbox and conversation list into your Compose app, with push notifications built in.
- Author: Chris
- Tags: Product update

If your Android app is written in Kotlin with Jetpack Compose, TalkJS used to give you data, not screens: the Kotlin Data API synced users, conversations and messages, and you drew every chat screen yourself. That's a good fit when you want full control, and a lot of work when all you need is a working chat.

The TalkJS Android Components SDK 0.2.0 adds a ready-made chat UI to Jetpack Compose apps. It gives you two composables, `Chatbox` for a single conversation and `ConversationList` for a user's inbox, plus push notifications through Firebase Cloud Messaging. The Kotlin Data API is included, so one dependency covers both the UI and your chat data.

## How the TalkJS Android Components SDK works

A TalkJS chat screen in Compose is one composable. This example shows the conversation `my_conversation` to the user `frank`, hides the built-in chat header so your own top bar can take its place, and loads a custom theme from your app's `assets` folder:

```kotlin
Chatbox(
    modifier = Modifier.fillMaxSize(),
    appId = "<YOUR_APP_ID>",
    userId = "frank",
    conversationId = "my_conversation",
    chatHeaderVisible = false,
    themePath = "my-theme/js/custom-theme.js",
)

```

Inside each composable, the Android Components SDK renders TalkJS Web Components in an Android WebView. The JavaScript and CSS ship inside the library and load from the app, not from a CDN. The upside is that the chat UI on Android matches the one on the web: if you already use the TalkJS React or Web Components SDK, you can copy your theme files into `assets` and point `themePath` and `customCssPath` at them. The [Customization guide](https://talkjs.com/docs/UI%5FComponents/Web%5FComponents/Customization/) applies to both.

Native Android code still handles what belongs to the device. When a user records a voice message or shares a location, Android shows its system permission prompt. The `beforePermissionPrompt` callback lets you explain the request first, and `onMissingPermission` tells you when the user has said no.

## Push notifications for Android chat with Firebase Cloud Messaging

The TalkJS Android Components SDK also delivers push notifications through Firebase Cloud Messaging (FCM). You call `TalkJSNotifications.registerPushNotificationHandlers` once from `Application.onCreate`, and the library registers the device with TalkJS, shows a notification when a message arrives while the user is offline, and groups notifications into one per conversation.

When the user taps a notification, the library can open the activity you pass as `activityToOpen`, and your `onNotificationPressed` callback receives the conversation ID so you can open the right chat. Channel settings such as importance, sound and lock screen visibility go in `PushNotificationSettings`. If your app already has its own `FirebaseMessagingService`, you can turn off the built-in one and forward TalkJS messages to `TalkJSNotifications.handleRemoteMessage`. The [push notifications guide](https://talkjs.com/docs/UI%5FComponents/Android/Push%5FNotifications%5FGuide/) has the setup steps.

## What you can build with Android Components

These are some of the screens and behaviors the TalkJS Android Components SDK supports in its first release:

- **A messaging inbox.** Show a user's conversations with [ConversationList](https://talkjs.com/docs/UI%5FComponents/Android/ConversationList/), and open the chosen one in a `Chatbox` from its `onSelectConversation` callback.
- **Chat controlled from your own UI.** [ChatboxController](https://talkjs.com/docs/UI%5FComponents/Android/Chatbox/#ChatboxController) lets your Kotlin code send text, file and location messages, search a conversation, jump to a message, and toggle emoji reactions.
- **Custom message actions.** The `onMessageAction` callback fires when a user taps an [action button or link](https://talkjs.com/docs/Features/Action%5FButtons%5FLinks/) inside a message, so a chat can trigger your app's own flows, such as accepting an offer.
- **Branded chat across web and Android.** Pick the `DEFAULT` or `CLASSIC` base theme, then apply your own theme with `themePath`, `customCssPath` and `themeCustom`.
- **Notifications that bring users back.** Grouped FCM notifications per conversation, with tap handling that opens the right screen. See the [push notifications reference](https://talkjs.com/docs/UI%5FComponents/Android/Push%5FNotifications/).

## Android Components FAQ

### Should I use Android Components or the Kotlin Data API?

Use Android Components for a ready-made chat UI in a Compose app. Use the Kotlin Data API on its own to build a fully custom UI, or for chat logic without UI. Android Components includes the [Kotlin Data API](https://talkjs.com/docs/Data%5FAPIs/Kotlin/), so you can combine them, for example to create users and conversations before you show a `Chatbox`.

### Do I need my own Firebase project for Android push notifications?

Yes. TalkJS Android Components sends push notifications through Firebase Cloud Messaging, so your app needs Firebase set up, and you add your Firebase service account key on the **Settings** page of the [TalkJS dashboard](https://talkjs.com/dashboard/). The [push notifications guide](https://talkjs.com/docs/UI%5FComponents/Android/Push%5FNotifications%5FGuide/) has the steps.

### Is there a TalkJS chat UI for iOS as well?

TalkJS Android Components is for Android only. For a native iOS app, the [Swift Data API](https://talkjs.com/docs/Data%5FAPIs/Swift/) gives you the chat data, and you build the UI. If your app is built with [Flutter](https://talkjs.com/docs/UI%5FComponents/Flutter/) or [React Native](https://talkjs.com/docs/UI%5FComponents/React%5FNative/), the TalkJS components for those frameworks give you a ready-made chat UI on both Android and iOS.

## Get started with Android Components

Add `com.talkjs:android-components` version 0.2.0 from [Maven Central](https://central.sonatype.com/artifact/com.talkjs/android-components) to a Jetpack Compose app with a minimum SDK of 24 (Android 7.0). For more on Android chat with TalkJS, see [Android chat with TalkJS](https://talkjs.com/build/android/). To set up your first chat, follow the [Android getting started guide](https://talkjs.com/docs/UI%5FComponents/Android/).