updateToken

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

Updates the device’s FCM token on the backend.

Return

true if the token was updated successfully; false otherwise.

Parameters

token

The FCM / APNs token obtained from your Firebase or APNs setup.

deviceId

The unique ID of the device.

Throws

if update fails.