/ SDKs / Flutter
SDKs
Chat SDKs Flutter v4
Chat SDKs Flutter
Chat SDKs
Flutter
Version 4

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.

try {
  int totalUnreadMessageCount = await SendbirdChat.getTotalUnreadMessageCount();
} catch (e) {
  // Handle error.
}