SupportPushNotificationController

interface SupportPushNotificationController

Functions in this interface will only work if you add the plugin dependency: 'com.sensorberg.smartspaces:push' and initialize the plugin.

Please read Push Notification for more information of how to enable the plugin.

Functions

registerFirebaseDeviceToken
Link copied to clipboard
abstract fun registerFirebaseDeviceToken(token: String, callback: (Result<Unit>) -> Unit): Cancelable
abstract fun registerFirebaseDeviceToken(token: String, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable

Support function to register the push notification token.

registerFirebaseDeviceTokenLiveData
Link copied to clipboard
abstract fun registerFirebaseDeviceTokenLiveData(token: String): LiveData<Result<Unit>?>

Support function to register the push notification token.

Inheritors

PushNotificationController
Link copied to clipboard