Enables the management of device registrations and push notification subscriptions. Also enables the publishing of push notifications to devices.

Hierarchy

  • PushAdminCallbacks

Constructors

Properties

channelSubscriptions: PushChannelSubscriptionsCallbacks
deviceRegistrations: PushDeviceRegistrationsCallbacks

Methods

  • Sends a push notification directly to a device, or a group of devices sharing the same clientId.

    Parameters

    • recipient: any

      A JSON object containing the recipient details using clientId, deviceId or the underlying notifications service.

    • payload: any

      A JSON object containing the push notification payload.

    • Optional callback: errorCallback

      A function which will be called upon completion of the operation. If the operation succeeded, then the function will be called with null. If it failed, the function will be called with information about the error.

    Returns void

Generated using TypeDoc