Notifications: replace or withdraw notifications
- Application X shows a notification for an action, but the action was canceled by another action, ideally the notification should be either removed, or replaced with an updated notification.
On linux this is handled by returning an ID when sending a notification. This ID can then be passed when creating a new notification to replace the old one, or to withdraw a notification by also passing the ID.
We currently have a dbp-notification-send
event.
We could:
- add a callback which returns a UUID
- allow sending that id as a replacement
- Add another event, or extend the existing one to withdraw a notification (action=show/withdraw)