Hello 👋 How can we help?

Display the unread chats count

Use the following method to display the number of unread chats in your iOS app.
Written by Andrew
Updated 3 months ago

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

ObjC

[HelpCrunch numberOfUnreadChats]

Swift

HelpCrunch.numberOfUnreadChats()

Also, you can observe the HCSUnreadChatsNotification notification event to keep you up to date. You can read more about how to do it here.

Did this answer your question?