getPushToken

fun getPushToken(context: Context): String?

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

Return

Saved Push token, else null

Since

12.0.00

Parameters

context

Instance of Context


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

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

Return

Saved Push token, else null

Since

12.0.00

Parameters

context

Instance of Context

appId

Account identifier, APP ID on the MoEngage Dashboard.