DeviceTokenProvider

fun interface DeviceTokenProvider

Defines provider of device token for push notifications, typically this will be Firebase.messaging.token.

Functions

Link copied to clipboard
abstract fun requestDeviceToken(onComplete: (String) -> Unit)

Create or retrieve a device token for push messages, if it is unavailable, the provider should return null. When the token becomes available it should be passed to the chat or builder by invoking the onComplete callback.