In-App Replies Callbacks

React to new replies with onNewReply in KMP.

New reply flow

When a new reply is received from support, RepliesKmp.onNewReply emits. Use it to update a badge, refresh the list, or show an in-app prompt:

Kotlin
scope.launch {
    RepliesKmp.onNewReply.collect {
        updateUnreadBadge()
        // or refresh UI, show snackbar, etc.
    }
}

Combine with RepliesKmp.getUnreadRepliesCount() to display the exact count.

Last updated