MoEPushHelper

class MoEPushHelper

Helper class for push related hooks.

Author

Umang Chamaria

Types

Companion
Link copied to clipboard
object Companion

Functions

isFromMoEngagePlatform
Link copied to clipboard
fun isFromMoEngagePlatform(pushPayload: Bundle): Boolean
fun isFromMoEngagePlatform(pushPayload: Map<String, String>): Boolean

Checks whether the FCM message was being delivered from the MoEngage Platform or not

isSilentPush
Link copied to clipboard
fun isSilentPush(@NonNull pushPayload: Map<String, String>): Boolean

Checks if the given payload is a Silent Notification or not.

logNotificationClick
Link copied to clipboard
fun logNotificationClick(context: Context, intent: Intent)

Track notification click. Make sure the intent has the push notification payload received Firebase as intent extras.

Note: Generally this method is not required. Only call this API if you are not passing the payload to MoEngage SDK. Call this method from the onCreate() of your intent which is fired on notification click.

logNotificationReceived
Link copied to clipboard
fun logNotificationReceived(context: Context, notificationPayload: Map<String, String>)

Tracks notification impression.

Note: Generally this method is not required. Only call this API if you are not passing the payload to MoEngage SDK. Call this method from onMessageReceived() of your Firebase Receiver.

Properties

messageListener
Link copied to clipboard
var messageListener: PushMessageListener