tauri-apps / tauri-apps/plugins-workspace
[feat] Notification Require Interaction Option
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
### Describe the problem
I couldn't find any issues related to this or anything in the documentation about requiring interaction to close notifications. In web browsers, I can use `requireInteraction: true` to make the notification "persistent" until closed. There doesn't seem to be a way to do this in Tauri unless I missed something.
### Describe the solution you'd like
It would be great if the options for the [`sendNotification` options](https://v2.tauri.app/reference/javascript/notification/#options) to include a flag for `requireInteraction`.
Example of a persistent notification:

### Alternatives considered
https://developer.mozilla.org/en-US/docs/Web/API/Notification
### Additional context
https://developer.mozilla.org/en-US/docs/Web/API/Notification/requireInteraction
Contributor guide
Assessment
This issue has not been assessed yet.