In-App Replies Callbacks
React to new replies with onNewReply in KMP.
Last updated
React to new replies with onNewReply in KMP.
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:
scope.launch {
RepliesKmp.onNewReply.collect {
updateUnreadBadge()
// or refresh UI, show snackbar, etc.
}
}Combine with RepliesKmp.getUnreadRepliesCount() to display the exact count.
Last updated