Get device token (beta)
Gets a token that can be sent to a backend for sending push notifications to this device.
Gets a token that uniquely identifies the current device as a recipient for push notifications for this app.
Requires push notification permissions to have been requested by the app and granted by the user.

Input arguments

No input arguments.

Output arguments

Number of outputs: 2
Label
Key
Type
Description
Device token
token
String
Token identifying this unique device as a recipient for push notifications.

Events

No events.

Errors

Label
Code
Description
Unknown error
unknown
Thrown if the device token could not be retreived.
Last modified 3mo ago
Export as PDF
Copy link