# In-App Replies Callbacks

### 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:

{% code title="Kotlin" %}

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

{% endcode %}

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