In-App Replies Callbacks
Collect the RepliesKmp.onNewReply flow in your KMP app to refresh a badge or prompt when support answers, paired with getUnreadRepliesCount.
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:
scope.launch {
RepliesKmp.onNewReply.collect {
updateUnreadBadge()
// or refresh UI, show snackbar, etc.
}
}Combine with RepliesKmp.getUnreadRepliesCount() to display the exact count.
Last updated