register Firebase Device Token
abstract suspend fun registerFirebaseDeviceToken(token: String): Result<Unit>
Content copied to clipboard
Register the firebase device token.
This is required for sending push notification for the individual devices using Firebase cloud messaging.
How to get the Firebase Messaging Token
This call requires the user to be logged-in!
Since
1.8.0
Return
Result.Error when user is not logged-in.
Parameters
token
the firebase device token
Throws
when dependency 'com.sensorberg.smartspaces:push' is not added to the classpath and the plugin is not initialized