tauri-apps / tauri-apps/plugins-workspace
[notification] `active()`, `pending()`, `cancel()` throw `Command not found` on macOS
Open
plugin: notification
type: documentation
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
Exact error messages:
```
Command cancel not found
Command get_active not found
Command get_pending not found
```
My code:
```js
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
Contributor guide
Assessment
This issue has not been assessed yet.