Airship Push.

Hierarchy

  • AirshipPush

Constructors

Properties

Android only push methods.

iOS only push methods.

plugin: AirshipPluginWrapper

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

    Returns

    A promise with the result.

    Parameters

    • identifier: string

      The identifier.

    Returns Promise<void>

  • Clears all notifications for the app.

    Returns

    A promise with the result.

    Returns Promise<void>

  • Enables user notifications.

    Returns

    A promise with the permission result.

    Returns Promise<boolean>

  • Gets the list of active notifications.

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

    Returns

    A promise with the result.

    Returns Promise<PushPayload[]>

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

    Returns

    A promise with the result.

    Returns Promise<undefined | null | string>

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

    Returns

    A promise with the result.

    Returns Promise<boolean>

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

    Returns

    A promise.

    Parameters

    • enabled: boolean

      true to enable, false to disable

    Returns Promise<void>

Generated using TypeDoc