Display unread chats count

Use the following method to display the number of unread chats in your Android app.
Written by Alex
Updated 2 months ago

You can get the number of current unread chats (e.g. on the app icon) by calling this method:

HelpCrunch.getUnreadChatsCount(new Callback<Integer>() {
            public void onSuccess(Integer result) {
               //handle result

            public void onError(@NotNull String message) {
               //handle error

Did this answer your question?