tauri-apps / tauri-apps/plugins-workspace

[feat] Notification Require Interaction Option

Open
#2,777 1 comment 2 reactions 0 assignees View on GitHub
plugin: notification type: feature request
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:

![Image](https://github.com/user-attachments/assets/3eb55380-449a-4095-a593-ebf3df9aaf43)

### 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.