passPushToken

Deprecated

FCM has deprecated the registration token. This API stops working when FCM removes the legacy token support, or it will be removed in MoEngage-Android-SDK version 16.00.00. Use passInstallationId() instead.

Replace with

passInstallationId(context, installationId)

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

Since

10.3.00

Parameters

context

instance of Context

token

Generated Push Token.

Throws

if the SDK is not initialized.


fun passPushToken(context: Context, token: String, appId: String): MoETask<PushTokenResult>

Deprecated

FCM has deprecated the registration token. This API stops working when FCM removes the legacy token support, or it will be removed in MoEngage-Android-SDK version 16.00.00. Use passInstallationId() instead.

Replace with

passInstallationId(context, installationId, workspaceId)

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

Since

10.3.00

Parameters

context

instance of Context

token

Generated Push Token.

appId

Account identifier, APP ID on the MoEngage Dashboard.

Throws

if the SDK is not initialized.