Setup In-App Replies

In-App Replies (chat) lets users have conversations with your team. You can show the conversations screen, check for existing chats, get unread count, and manage notifications.

Show conversations

Kotlin
RepliesKmp.show()

Shows the conversations screen. If the user has no chats, it may have no effect depending on the native SDK.

Check if user has chats

Kotlin
scope.launch {
    val hasChats = RepliesKmp.hasChats()
    if (hasChats) showRepliesButton()
}

Unread count

Kotlin
scope.launch {
    val count = RepliesKmp.getUnreadRepliesCount()
    updateBadge(count)
}

Last updated