MoEFireBaseHelper

class MoEFireBaseHelper

Helper class for MoEngage Firebase Module.

Author

Umang Chamaria

Since

9.4.00

Types

Companion
Link copied to clipboard
object Companion

Functions

addEventListener
Link copied to clipboard
fun addEventListener(@NonNull() listener: FirebaseEventListener)
Add an event listener to receive callbacks when MoEngage SDK's FirebaseMessagingService is used.
passPushPayload
Link copied to clipboard
fun passPushPayload(context: Context, payload: Bundle)
Pass the payload received from FCM to the MoEngage SDK for showing Push Notification.
fun passPushPayload(context: Context, payload: Map<String, String>)
Pass the payload received from FCM to the MoEngage SDK for showing Push Notification.
passPushToken
Link copied to clipboard
fun passPushToken(context: Context, token: String)
Helper API to pass the push token to the MoEngage platform.
registerForToken
Link copied to clipboard
fun registerForToken(context: Context)
API to register for FCM Token.
removeEventListener
Link copied to clipboard
fun removeEventListener(@NonNull() listener: FirebaseEventListener)
Remove an already added FirebaseEventListener
setEventListener
Link copied to clipboard
fun setEventListener(listener: FirebaseEventListener)