Hierarchy

Constructors

Methods

  • Create a notification

    Parameters

    Returns Promise<{
        id: string;
    }>

    Example

    notificationData: [
    {
    title: "My notification title",
    message: "My notification message"
    }
    ]
  • Mark notifications as read

    Parameters

    • notificationIDS: string | string[]

      An array of ids or a single id

    Returns Promise<string>

  • Mark notifications as unread

    Parameters

    • notificationIDS: string | string[]

      An array of ids or a single id

    Returns Promise<string>

  • Acknowledge notification button pressed

    Parameters

    • notificationID: string

      ID of the notification

    • buttonID: string

      ID of the button

    Returns Promise<string>

  • Register device Token on Push Notification Service

    Parameters

    • deviceToken: string

      Device token

    • platform: "android" | "ios"

      Platform of device

    Returns Promise<string>

  • Remove a notification

    Parameters

    • notificationID: string

      Notification identification

    Returns Promise<string>

  • Unregister device Token on Push Notification Service

    Parameters

    • deviceToken: string

      Device token

    Returns Promise<string>