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

Retrieve number of channels with unread messages

Copy link

Using the getTotalUnreadChannelCount() method, you can retrieve the total number of group channels in which a user has one or more unread messages.

try {
  int totalUnreadChannelCount = await SendbirChat.getTotalUnreadChannelCount(); 
} catch (e) {
  // Handle error.
}