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

Retrieve number of channels with unread messages

By 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 { count, error in
    guard error == nil else {
        return // Handle error.
    }
}