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 2 weeks 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>() {
            @Override
            public void onSuccess(Integer result) {
               //handle result
            }

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

Did this answer your question?