MoEPushKitHelper

Helper class for HMS PushKit

Author

Umang Chamaria

Since

1.0.0

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Register a listener to receive a callback whenever a push is received/clicked 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

Fetch the push token(if available) for the account configured as default.

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

Fetch the push token(if available) for the given account.

Link copied to clipboard
fun passPushToken(@NonNull context: Context, pushToken: String)

Pass PushKit push token to the MoEngage SDK for the account configured as default.

fun passPushToken(context: Context, pushToken: String, appId: String)

Pass PushKit push token to the MoEngage SDK for the given account.

Link copied to clipboard