Chat / Flutter
Current version: v3
Chat Flutter v3
Chat Flutter
Chat
Flutter
Home
/
Chat
/
Flutter
/
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.

// This method is called from the SendbirdSdk class.
int unreadMessageCount = await sendbird.getTotalUnreadMessageCount();