Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for closing notifications #56

Open
delthas opened this issue Aug 27, 2023 · 3 comments
Open

Support for closing notifications #56

delthas opened this issue Aug 27, 2023 · 3 comments

Comments

@delthas
Copy link

delthas commented Aug 27, 2023

https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html

Taken from the spec:

org.freedesktop.Notifications.CloseNotification

void org.freedesktop.Notifications.CloseNotification ( );  
UINT32 id;
 

Causes a notification to be forcefully closed and removed from the user's view. It can be used, for example, in the event that what the notification pertains to is no longer relevant, or to cancel a notification with no expiration time.

@delthas
Copy link
Author

delthas commented Aug 27, 2023

Example use case: IM app, should clear the notificaiton when the particular channel containing the message causing the notification is seen

@gen2brain
Copy link
Owner

Is it supported in Windows, macOS, and in browsers?

@delthas
Copy link
Author

delthas commented Aug 28, 2023

Windows: yes (but needs support in the toast library, see linked issue)

Browsers: yes: https://developer.mozilla.org/en-US/docs/Web/API/Notification/close

MacOS: seems to be difficult at first glance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants