Support Push Notification Controller
interface SupportPushNotificationController
Content copied to clipboard
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
register Firebase Device Token
Link copied to clipboard
abstract fun registerFirebaseDeviceToken(token: String, callback: (Result<Unit>) -> Unit): Cancelable
Content copied to clipboard
abstract fun registerFirebaseDeviceToken(token: String, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable
Content copied to clipboard
Support function to register the push notification token.
register Firebase Device Token Live Data
Link copied to clipboard
abstract fun registerFirebaseDeviceTokenLiveData(token: String): LiveData<Result<Unit>?>
Content copied to clipboard
Support function to register the push notification token.
Inheritors
PushNotificationController
Link copied to clipboard