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 unread messages in all channels

By using the getTotalUnreadMessageCount() method, you can retrieve the total number of unread messages of a user in all group channels the user joined.

SendbirdChat.getTotalUnreadMessageCount { count, error in
    guard error == nil else {
        return // Handle error.
    }
}