Chat / Flutter
Chat Flutter v3
Chat Flutter
Chat
Flutter
Version 3
Home
/
Chat
/
Flutter
/
Message

Retrieve number of unread messages in all channels

Copy link

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();