PushDeviceTokenManager

class PushDeviceTokenManager(storage: PushStorage, logger: Logger = Logger.logger)

Manager class for handling push device tokens.

This class is responsible for managing device tokens used for push notifications, including storing, retrieving, and updating tokens locally.

Constructors

Link copied to clipboard
constructor(storage: PushStorage, logger: Logger = Logger.logger)

Functions

Link copied to clipboard

Get the current push device token

Link copied to clipboard
suspend fun getDeviceTokenId(): String?

Get the current device token ID

Link copied to clipboard
suspend fun shouldUpdateToken(newToken: String): Boolean

Check if the device token has changed and needs to be updated

Link copied to clipboard
suspend fun updateDeviceToken(newToken: String): Boolean

Update the device token locally