Hello 👋 How can we help?

Display unread messages' count

Use the following method to display the number of unread chat messages in your Android app.
Written by Alex
Updated 1 week ago

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

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

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

Did this answer your question?