Android Push.

Constructors

Properties

eventEmitter: NativeEventEmitter
foregroundDisplayPredicate?: ((pushPayload) => Promise<boolean>)

Type declaration

    • (pushPayload): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

module: any

Methods

  • Checks if a notification category/channel is enabled.

    Parameters

    • channel: string

      The channel name.

    Returns Promise<boolean>

    A promise with the result.

  • Overrides the foreground display per notification.

    The predicate should return as quickly as possible to avoid delaying notification delivery.

    Parameters

    • Optional predicate: ((pushPayload) => Promise<boolean>)

      A foreground display predicate.

        • (pushPayload): Promise<boolean>
        • Parameters

          Returns Promise<boolean>

    Returns void