Register for push notifications (Cloud Mesh)

Registers the currently logged-in user/device to receive push notifications from AppGyver's hosted Cloud Mesh backend.

Registers the current device to receive push notifications, and updates the logged-in user's metadata to include the push token for the current device.

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 registration fails for an unknown reason.