Notification.setAction()

Note: This API is supported from version 8.1.0

The ZohoSalesIQ.Notification.setAction() API enables you to specify whether the click action of the notification should be managed by the app or the Mobilisten SDK.

  • When using the .app in NotificationAction use the Notification.getPayload() API in the userNotification delegate of didReceive response method (enablePush step 3). 
  • You can also get the payload in delegate when using the .app to manage the tapped notification. 

Parameter

  • action - An enumeration determining the type of action source.

Syntax

CopiedZohoSalesIQ.Notification.setAction(with source: NotificationAction)

Example (managed by SDK)

CopiedZohoSalesIQ.Notification.setAction(with: .sdk)

Example (managed by application)

CopiedZohoSalesIQ.Notification.setAction(with: .app)