Android Push.

Constructors

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

    • Optionalpredicate: (pushPayload: PushPayload) => Promise<boolean>

      A foreground display predicate.

    Returns void