/ SDKs / Android
Chat SDKs Android v4
Chat SDKs Android
Chat SDKs
Version 4

Retrieve number of channels with unread messages

Copy link

Using the getTotalUnreadChannelCount method, you can retrieve the total number of group channels in which a user has one or more unread messages.

SendbirdChat.getTotalUnreadChannelCount { totalUnreadChannelCount, e ->
    if (e != null) {
        // Handle error.

    // ...