Developers » API methods » Account » account.unregisterDevice
Accountaccount.unregisterDevice
Unsubscribes a device from push notifications.
This method can be called with a user token received in Standalone-app via Implicit Flow. Access rights required: messages.
Parameters
device_idUnique device ID.
string, accessible for versions from 5.31
sandboxFor iOS devices. Possible values:
  • 1 Ś to unsubscribe a device that uses sandbox server;
  • 0 Ś to unsubscribe a device that does not use sandbox server.
flag, either 1 or 0, default 0
Show options for only old API versions
token
string, outdated option, only for versions before 5.31
Result
In case of success returns 1.
Errors
Global errors can occur while running. See their descriptions on this page.