Chat / Android
Chat Android v4
Chat Android
Chat
Android
Home
/
Chat
/
Android
/
Message
This is the new Docs for Chat SDK v4 for Android. To see the previous Docs, click here.

Retrieve number of unread messages in all channels

Using the getTotalUnreadMessageCount method, you can retrieve the total number of a user's unread messages in all group channels the user has joined.

SendbirdChat.getTotalUnreadMessageCount { totalUnreadCount, e ->
    if (e != null) {
        // Handle error.
    }

    // ...
}