Chat / iOS
Chat iOS v4
Chat iOS
Chat
iOS
Version 4
Home
/
Chat
/
iOS
/
Message

Retrieve number of channels with unread messages

Copy link

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