TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Class Notifications

    Index

    Constructors

    Methods

    • Marks all notifications in the application as read.

      Returns Promise<string>

      If receive an error "Authorization Denied", check policy Profile / Edit notification in Access Management.

      const result = await Resources.notifications.markAllAsRead();
      console.log(result); // All TagoIO Notification Run Successfully Updated
    • Marks one or multiple notifications as read.

      Parameters

      • notificationIDS: string | string[]

      Returns Promise<string>

      If receive an error "Authorization Denied", check policy Profile / Edit notification in Access Management.

      // Mark single notification
      await Resources.notifications.markAsRead("notification-id-123");

      // Mark multiple notifications
      await Resources.notifications.markAsRead(["id-1", "id-2"]);
    • Marks one or multiple notifications as unread.

      Parameters

      • notificationIDS: string | string[]

      Returns Promise<string>

      If receive an error "Authorization Denied", check policy Profile / Edit notification in Access Management.

      // Mark single notification
      await Resources.notifications.markAsUnread("notification-id-123");

      // Mark multiple notifications
      await Resources.notifications.markAsUnread(["id-1", "id-2"]);
    • Records when a notification button is pressed by the user.

      Parameters

      • notificationID: string
      • buttonID: string

      Returns Promise<string>

      If receive an error "Authorization Denied", check policy Profile / Edit notification in Access Management.

      const result = await Resources.notifications.notificationButton("notification-123", "button-456");
      console.log(result);
    • Registers a mobile device for push notifications.

      Parameters

      • deviceToken: string
      • platform: "android" | "ios"

      Returns Promise<string>

      This is used internally for mobile applications

    • Permanently deletes a notification from the system.

      Parameters

      • notificationID: string

      Returns Promise<string>

      If receive an error "Authorization Denied", check policy Profile / Delete notification in Access Management.

      const result = await Resources.notifications.remove("notification-123");
      console.log(result); // Successfully Removed
    • Removes a mobile device from push notification service.

      Parameters

      • deviceToken: string

      Returns Promise<string>

      This is used internally for mobile applications