Skip to main content

addFCMToken

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

Description

This method adds FCM token for sending Push notifications. It returns a Promise that resolves to an boolean value.

Users.addFCMToken(

token*

);

Parameters schema

Schema

token:* string
Cloud messaging token
example: xxxx-xxxxx-xxxxx

Examples

Minimal example

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

Example response

true