- Installation
- Push Notifications
- UI Customization
- API Reference
- .setTabOrder()
- Launcher Button Customization
- Zoho SalesIQ
- Launcher
- Chat
- .Chat.start()
- .Chat.addListener()
- .Chat.startWithTrigger()
- .Chat.setWaitingTime()
- .Chat.get()
- .setLanguage()
- .setDepartment()
- .setOperatorEmail()
- .Chat.setVisibility()
- .showOperatorImageInLauncher()
- .setChatTitle()
- .shouldOpenUrl()
- .showOperatorImageInChat()
- .setLauncherVisibility()
- .setThemeColorforiOS()
- .endChat()
- .showOfflineMessage()
- .setFeedbackVisibility()
- .setRatingVisibility()
- .getChats()
- .getChatsWithFilter()
- .openChat()
- .openChatWithID()
- .endChat()
- .fetchAttenderImage()
- .getDepartments()
- .isMultipleOpenChatRestricted()
- .getChatUnreadCount()
- .isChatEnabled()
- .showFeedbackAfterSkip()
- .hideQueueTime()
- .open()
- Chat Actions
- Visitors
- Notification Icon
- Notification
- Loggers
- Visitor Tracking
- In-App Notification
- Conversation
- Knowledge Base
- FAQ
- Download Sample App
- Release Notes
Notification.addListener()
The ZohoSalesIQ.Notification.addListener allows you to register a callback that is to be invoked whenever an event is triggered regarding the notification.
Event | Invoked when |
NOTIFICATION_CLICKED | when the notification clicked. |
Example
Copied const { Event } = ZohoSalesIQ.Notification
ZohoSalesIQ.Notification.addListener(({event, body}) => {
switch (event) {
case Event.NOTIFICATION_CLICKED:
// body: NotificationPayloadResult
console.log("EVENT_NOTIFICATION_CLICKED", body)
ZohoSalesIQ.Chat.open(body);
break;
default:
break;
}
})
© 2025, Zoho Corporation Pvt. Ltd. All Rights Reserved.