pushNotificationWasSentFromHurree

When you receive a push notification it is necessary to distinguish between push notifications received from the Hurree platform or the current application.

This method determines whether the push notification is sent from the HurreeSDK or the current application. If the push notification is sent from the HurreeSDK, it returns true; if it is sent from the current application, it returns false.

Method Signature

boolean pushNotificationWasSentFromHurree(Bundle gcmData, Map<String, String> fcmData)

Arguments

These are the arguments that define the method.

Name Type Mandatory Description
gcmData Bundle Mandatory Bundle is the GCM data that you receive in MyFirebaseMessagingService. It is null when the message is received from FCM.
fcmData Map Mandatory Map is the FCM data that you receive in MyFirebaseMessagingService. It is null when the message is received from GCM.

Sample Code

Analytics.getInstance(this).pushNotificationWasSentFromHurree(null, fcmData);

results matching ""

    No results matching ""