updateToken

abstract suspend fun updateToken(token: String, deviceId: String): Boolean

Stores this install's FCM registration token for the signed-in member.

Return

true if the backend stored the token; false when the request failed, whether offline or refused (the SDK log has the cause).

Parameters

token

The FCM registration token from Firebase Messaging - not the raw APNs device token.

deviceId

An identifier that is stable and unique per install (for example a UUID generated once and persisted). Never a value shared by several installs, such as the device model: deleteToken removes registrations by this id.