Skip to main content

addFCMToken

Adds an FCM token for sending push notifications. 🔐 This method requires authorization.

Description​

Registers a Firebase Cloud Messaging (FCM) token for the authenticated user's device, so the device can receive push notifications. Resolves to true on success.

.addFCMToken(

);

Parameters schema​

Schema

token(required): string
Firebase Cloud Messaging token that identifies the user's device for push notifications.
example: "fcm_token_1234567890abcdefg"

Examples​

Minimal example​

const response = await Users.addFCMToken('my-token');

Example response​

true