setPushToken

fun setPushToken(context: Context, token: String)

Sets a new Firebase token to receive push notifications from the server. It is recommended to call it when Firebase provides the token to the application. The SDK will register this token for the current session (if any) and for the following ones. If another token is provided, the method should be called again with the new value.

Parameters

context

Application or activity context.

token

Firebase token to register.