plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

[notification] `active()`, `pending()`, `cancel()` throw `Command not found` on macOS

Open micouy opened this issue 1 year ago • 0 comments

Exact error messages:

Command cancel not found
Command get_active not found
Command get_pending not found

My code:

const checkNotifications = () => {
  active().then((notifications) => {
    console.log({ active: notifications });
  });

  pending().then((notifications) => {
    console.log({ pending: notifications });
  });
};

const cancelLast = () => {
  cancel([notifications[notifications.length - 1].id]).then(
    (notifications) => {
      console.log({ afterRemoving: notifications });
    }
  );
};

I didn't change the default permissions.

Tauri version: 2.0.0 macOS version: Sonoma 14.5

micouy avatar Oct 07 '24 14:10 micouy