getPushToken

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

Return

push token(String) if available else null

Since

4.0.0

Parameters

context

instance of Context


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

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

Return

push token(String) if available else null

Since

4.0.0

Parameters

context

instance of Context

appId

Account identifier, APP ID on the MoEngage Dashboard.