plugins-workspace
plugins-workspace copied to clipboard
[notification] `active()`, `pending()`, `cancel()` throw `Command not found` on macOS
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