iOS Push.

Constructors

Properties

eventEmitter: NativeEventEmitter
module: any
presentationOverridesCallback?: ((pushPayload) => Promise<null | ForegroundPresentationOption[]>)

Type declaration

Methods

  • Gets the badge number.

    Returns Promise<number>

    A promise with the result.

  • Checks if autobadge is enabled.

    Returns Promise<boolean>

    A promise with the result.

  • Enables/disables autobadge.

    Parameters

    • enabled: boolean

      true to enable, false to disable.

    Returns Promise<void>

    A promise.

  • Set the badge number.

    Parameters

    • badge: number

      The badge number.

    Returns Promise<void>

    A promise.

  • Overrides the presentation options per notification. If a null is returned, the default options will be used. The callback should return as quickly as possible to avoid delaying notification delivery.

    Parameters

    Returns void

  • Sets the notification options.

    Parameters

    Returns Promise<void>

    A promise.