Interface PushAdmin

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

Hierarchy

  • PushAdmin

Properties

channelSubscriptions: PushChannelSubscriptions
deviceRegistrations: PushDeviceRegistrations
liveActivity: PushLiveActivity

Controls the lifecycle of iOS Live Activities over an APNs broadcast channel created with createApnsBroadcast.

This is a preview feature and may change in a future non-major release.

Methods

  • Experimental

    Creates an APNs broadcast channel for use with an iOS Live Activity. Call once before starting the Live Activity and persist the returned ids for the session.

    This is a preview feature and may change in a future non-major release.

    Parameters

    Returns Promise<PushApnsBroadcast>

    A promise resolving to the broadcast { id, apnsChannelId }.

  • 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.

    Returns Promise<void>

    A promise which resolves upon success of the operation and rejects with an ErrorInfo object upon its failure.

Generated using TypeDoc