Unregister from push notifications (Cloud Mesh)

Unregisters the currently logged-in user/device from receiving push notifications from AppGyver's hosted Cloud Mesh backend.

Unregisters the currently logged-in user device from receiving push notifications from AppGyver's hosted Cloud Mesh backend.

In practice, this happens by removing the current device's push notification token from the user's metadata.

Requires the user to be logged in and the app to use AppGyver Auth for authentication. The device must also be connected to the Internet.

Input arguments

No input arguments.

Output arguments

Number of outputs: 2

No output arguments.

Events

No events.

Errors

Label

Code

Description

Unknown error

unknown

Thrown if the push notification unregistration fails for an unknown reason.