- Installation
- Push Notifications
- Rest API
- UI Customization
- API Reference
- Zoho SalesIQ
- Launcher
- Chat
- delegate
- start()
- startWithTrigger()
- setWaitingTime()
- get()
- isEnabled
- getList()
- getDepartments()
- fetchAttenderImage()
- show()
- startChat()
- setVisibility()
- setTitle()
- setLanguage()
- setDepartment()
- setAgentEmail
- setMessage()
- showOfflineMessage()
- getUnreadMessageCount()
- endSession()
- clearData()
- showFeedbackAfterSkip()
- hideQueueTime()
- open()
- Chat Actions
- Logger
- Visitors
- Visitor Tracking
- Push Notifications
- In-App Notifications
- Notification
- Conversation
- Knowledge Base
- FAQ
- SDK 2.x
- Chat
- .Chat.startChat()
- .Chat.setVisibility()
- .Chat.setTitle()
- .Chat.setLanguage()
- .Chat.setDepartment()
- .Chat.setAgentEmail()
- .Chat.setThemeColor()
- .Chat.setVisitorImage()
- .Chat.setMessage()
- .Chat.showOfflineMessage()
- .Chat.getUnreadMessageCount()
- .Chat.clearMessages()
- .Chat.setBarColor()
- .Chat.setBarTintColor()
- .Chat.setSearchTintColor()
- .Chat.setBarTitleColor()
- .Chat.endSession()
- .Chat.clearData()
- Event Handler
- Visitors
- Tracking
- Chat Window
- Push Notification
- In-App Notifications
- Conversation
- FAQ
- Chat
- Download Sample App
- Release Notes
- Additional Features
- Help Videos
.Chat.getUnreadMessageCount()
This API can be used to get the count of unread messages in an ongoing chat.
Syntax
CopiedgetUnreadMessageCount()
Example: Objective C
Copied int count = [[ZohoSalesIQ Chat]getUnreadMessageCount];
Example: Swift
Copied let count = ZohoSalesIQ.Chat.getUnreadMessageCount()
© 2025, Zoho Corporation Pvt. Ltd. All Rights Reserved.