put
https://api.things5.digital/v1/current_user/device_notification/
Registers or refreshes an FCM token for push notifications
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Registers the device's FCM token for the current user, or refreshes it if it is already registered. Once registered, the device receives the push notifications of the events the user has subscribed to.
Call it at every app start or login, and whenever Firebase rotates the token.
- Always send
user_agentandplatform: a field left out on a later call is reset to null. labelis applied only on the first registration. To change it, or to disable the device, use Update push device.- iOS apps must get the token from the Firebase Messaging SDK: a raw APNs token is not accepted.
On logout call Unregister push device.
