Chat / Android
Chat Android v4
Chat Android
Chat
Android
Version 4
Home
/
Chat
/
Android
/
Message

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.
    }

    // ...
}