no-translate

Display the unread chats count

Use the following method to display the number of unread chats in your iOS app.
Napisany przez Andrew
Zaktualizowano 6 miesięcy temu

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.

Czy odpowiedzieliśmy na Twoje pytanie?