Advanced integration
Advanced integration
Get Unread Message Count API
'GetUnreadMessageCount()` gets the total number of unread messages the end user has.
The following snippet shows how to retrieve the unread message count.
// Get the unread message count
int unreadMessageCount = await ZendeskMessaging.Instance.GetUnreadMessageCount();
Note: The SDK must be initialized before using this method. See Initialize the SDK for more details.