MoEFireBaseHelper

Helper class for MoEngage Firebase Module.

Author

Umang Chamaria

Since

9.4.00

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Register a listener to receive a callback whenever a push is received which isn't from MoEngage.

Link copied to clipboard

Register a listener to receive a callbacks whenever a token is generated or updated.

Link copied to clipboard

Generates Push Token.

Link copied to clipboard
fun getPushToken(context: Context): String?

Get saved Push Token(if any) for the account configured as default.

fun getPushToken(context: Context, appId: String): String?

Get saved Push Token(if any) for the given account.

Link copied to clipboard
fun passPushPayload(context: Context, payload: Bundle)
fun passPushPayload(context: Context, payload: Map<String, String>)

Pass the payload received from FCM to the MoEngage SDK for showing Push Notification.

Link copied to clipboard
fun passPushToken(context: Context, token: String)
fun passPushToken(context: Context, token: String, appId: String)

Helper API to pass the push token to the MoEngage platform.

Link copied to clipboard

API to register for FCM Token. Call this API only if you are delaying the SDK initialisation else this is not required.

Link copied to clipboard