.Chat.getUnreadMessageCount()

This API can be used to get the count of unread messages in an ongoing chat.

Example

Copiedlet count = ZohoSalesIQ.Chat.getUnreadMessageCount()
Copiedint count = [[ZohoSalesIQ Chat]getUnreadMessageCount];