DeviceTokenProvider

public interface DeviceTokenProvider

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

Functions

Link copied to clipboard
public abstract Unit requestDeviceToken(Function1<String, Unit> onComplete)

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.