Notification.handle()
This API can be used to process and handle all the Zoho SalesIQ related push notifications ie., notifications that pop up every time there comes an incoming chat request, a trigger is set off and every time a visitor leaves your mobile application.
PARAMETERS
Note: This API has to set the NotificationReceiver class. i.e Redirect the notification data to Zoho SalesIQ. (Only the notifications from Zoho SalesIQ server will be handled. The developer has to handle other notifications.)
- context: The context of the application.
- data: Notification data.
- iconResId: Resource id of the icon that is to be displayed in the notifications.
Syntax:
CopiedZohoSalesIQ.Notification.handle(Context context,Map data, int iconResId);
Example:
Copiedpublic class PushNotificationService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage message) {
Map extras = message.getData();
ZohoSalesIQ.Notification.handle(this.getApplicationContext(),extras,R.drawable.ic_notification);
}
}