Airship Push.

Constructors

Properties

Android only push methods.

iOS only push methods.

module: any

Methods

  • Clears a specific notification.

    On Android, you can use this method to clear notifications outside of Airship, The identifier is in the format of :.

    Parameters

    • identifier: string

      The identifier.

    Returns void

  • Clears all notifications for the app.

    Returns void

  • Enables user notifications.

    Returns Promise<boolean>

    A promise with the permission result.

  • Gets the list of active notifications.

    On Android, this list only includes notifications sent through Airship.

    Returns Promise<PushPayload[]>

    A promise with the result.

  • Gets the registration token if generated. Use the event EventType.PushTokenReceived to be notified when available.

    Returns Promise<undefined | null | string>

    A promise with the result.

  • Checks if user notifications are enabled or not on Airship.

    Returns Promise<boolean>

    A promise with the result.

  • Enables/disables notifications on Airship.

    When enabled, it will cause the user to be prompted for the permission on platforms that support it. To get the result of the prompt, use enableUserNotifications.

    Parameters

    • enabled: boolean

      true to enable, false to disable

    Returns Promise<void>

    A promise.