/ SDKs / Flutter
SDKs
Chat SDKs Flutter v3
Chat SDKs Flutter
Chat SDKs
Flutter
Version 3
Sendbird Chat SDK v3 for Flutter is no longer supported as a new version is released. Check out our latest Chat SDK v4

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