beeep icon indicating copy to clipboard operation
beeep copied to clipboard

Support for closing notifications

Open delthas opened this issue 2 years ago • 3 comments

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 avatar Aug 27 '23 13:08 delthas

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

delthas avatar Aug 27 '23 13:08 delthas

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

gen2brain avatar Aug 27 '23 15:08 gen2brain

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

delthas avatar Aug 28 '23 10:08 delthas