Push

View on Github

Push handles push notifications for this app.

Properties

pluginany

The push plugin (window.PushNotification).

optionsPushOptions

tokenPushToken | undefined

Methods

saveToken(tokenPushTokenoptions?PushSaveTokenOptions): Promise<PushToken>

Register a token with the API.

When a token is saved, you can send push notifications to it. If a user is logged in, the token is linked to them by their ID.

token

The token.

options (optional)

register(): Promise<PushToken>

Registers the device with GCM/APNS to get a push token.

After a device is registered, you will likely want to save the token with saveToken() to the API.

unregister(): Promise<void>

Invalidate the current push token.

Services

    API

      General