Total number of unread messages for all chats in Applogic SDK

129 views Asked by At

I am using applogic chat sdk and want the count of unread messages for a user, i need to show the same as a count on my notification icon in my android app.

1

There are 1 answers

0
Sunil Kumar On

You can use the below method to get the total unread count

int totalUnreadCount = new MessageDatabaseService(context).getTotalUnreadCount();

Refer this link for docs for total unread count link