register Firebase Device Token Live Data
abstract fun registerFirebaseDeviceTokenLiveData(token: String): LiveData<Result<Unit>?>
Content copied to clipboard
Support function to register the push notification token.
This is required for sending push notification for the individual devices using Firebase cloud messaging.
How to get the Firebase Messaging Token
Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!
After logout LiveData.getValue is set to null. You need to re-observe this LiveData once the user is logged out!
Since
1.8.0
Return
LiveData with the Result
Parameters
token
the token which should be configured.
Throws
when dependency 'com.sensorberg.smartspaces:push' is not added to the classpath and the plugin is not initialized