register Firebase Device Token
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!
Since
1.8.0
Return
Cancelable It is your responsibility to cancel this operation, when no longer needed, to avoid memory leaks.
Parameters
the token which should be configured.
receiving the Result.
Throws
when dependency 'com.sensorberg.smartspaces:push' is not added to the classpath and the plugin is not initialized
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!
Since
1.9.0
Return
Cancelable In case you want to cancel before Lifecycle.State.DESTROYED.
Parameters
the token which should be configured.
auto cancel the Cancelable when lifecycle state is Lifecycle.State.DESTROYED.
receiving the Result.
Throws
when dependency 'com.sensorberg.smartspaces:push' is not added to the classpath and the plugin is not initialized