Display unread chats count

Use the following method to display the number of unread chats in your Android app.
Written by Alex
Updated 6 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>() {
            @Override
            public void onSuccess(Integer result) {
               //handle result
            }

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

Did this answer your question?