Interface AirshipPush

Airship Push.

Hierarchy

  • AirshipPush

Properties

Android only push methods.

iOS only push methods.

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.

    • Optional success: (() => void)

      Success callback.

        • (): void
        • Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Clears all notifications for the app.

    Parameters

    • Optional success: (() => void)

      Success callback.

        • (): void
        • Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Enables user notifications.

    Parameters

    • success: ((enabled: boolean) => void)

      Success callback.

        • (enabled: boolean): void
        • Parameters

          • enabled: boolean

          Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Gets the list of active notifications.

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

    Parameters

    • success: ((payloads: PushPayload[]) => void)

      Success callback.

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • Gets the push token if generated. Use the event listener onPushTokenReceived to be notified when its available.

    Parameters

    • success: ((token: undefined | null | string) => void)

      Success callback.

        • (token: undefined | null | string): void
        • Parameters

          • token: undefined | null | string

          Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

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

    Parameters

    • success: ((enabled: boolean) => void)

      Success callback.

        • (enabled: boolean): void
        • Parameters

          • enabled: boolean

          Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

  • 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

    • Optional success: (() => void)

      Success callback.

        • (): void
        • Returns void

    • Optional error: ((err: string) => void)

      Error callback.

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

Generated using TypeDoc