getPushToken

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

Return

push token(String) if available else null

Since

5.0.0

Parameters

context

instance of Context


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

Fetch the push token for the specified instance if available for the given account.

Return

push token(String) if available else null

Since

5.0.0

Parameters

context

instance of Context

appId

Account identifier, APP ID on the MoEngage Dashboard.