- Installation
- Push Notifications
- Rest API
- UI Customization
- API Reference
- Zoho SalesIQ
- Launcher
- Conversation
- 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
- Calls
- Logger
- Visitors
- Visitor Tracking
- Push & VoIP
- In-App Notifications
- Notification
- 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
.processNotificationWithInfo()
This API can be used to process the received push notification data and display the message.
Syntax
CopiedZohoSalesIQ.processNotificationWithInfo(info: [AnyHashable: Any]?)
Example
Copiedfunc application(_ application: UIApplication, didReceiveRemoteNotification
userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler:
@escaping (UIBackgroundFetchResult) -> Void)
{
ZohoSalesIQ.processNotificationWithInfo(info: userInfo)
completionHandler(UIBackgroundFetchResult.newData)
}
func application(_ application: UIApplication, didReceive notification:
UILocalNotification)
{
ZohoSalesIQ.processNotificationWithInfo(info: notification.userInfo)
}
@available(iOS 10.0, *)
func userNotificationCenter(_ center: UNUserNotificationCenter,willPresent
notification: UNNotification,
withCompletionHandler completionHandler: @escaping
(UNNotificationPresentationOptions) -> Void)
{
completionHandler(UNNotificationPresentationOptions.alert)
ZohoSalesIQ.processNotificationWithInfo(info:
notification.request.content.userInfo)
}
@available(iOS 10.0, *)
func userNotificationCenter(_ center: UNUserNotificationCenter,didReceive
response: UNNotificationResponse,
withCompletionHandler completionHandler: @escaping () -> Void)
{
if response.actionIdentifier == UNNotificationDismissActionIdentifier
{
// The user dismissed the notification without taking action
}
else if response.actionIdentifier == UNNotificationDefaultActionIdentifier
{
ZohoSalesIQ.processNotificationWithInfo(info:
response.notification.request.content.userInfo)
}
}
© 2025, Zoho Corporation Pvt. Ltd. All Rights Reserved.