Skip to content

[feat] Notification Require Interaction Option #2777

Open
@MattTheCuber

Description

@MattTheCuber

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 to include a flag for requireInteraction.

Example of a persistent notification:

Image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions