OnGetTokenAsync

interface OnGetTokenAsync

Callback interface for asynchronous HMS token retrieval.

Implement this interface to receive callbacks when the HMS token is successfully retrieved or when an error occurs during token retrieval.

See also

Functions

Link copied to clipboard
abstract fun onError(error: String)
Called when HMS push token retrieval fails.
Link copied to clipboard
abstract fun onGetToken(token: String)
Called when HMS push token is successfully retrieved.