picket-line-notifier icon indicating copy to clipboard operation
picket-line-notifier copied to clipboard

Strike notifications not always sent if dismissed a short time ago

Open jamespizzurro opened this issue 1 year ago • 1 comments

At least for me in Chrome (119.0.6045.200) on Windows 11 (Home, 22H2), when I visit a website and get notified about a strike, if I dismiss that notification, I stop getting notifications about that strike for a while. This may be behavior enforced by the browser and/or operating system I'm using, but I noticed that, after a few minutes, something happens and I'll get another notification about that strike if I visit the site that triggered the original notification again, even if that means just switching to an existing tab with it still open.

It seems like notifications are clearing in such a way that notifications.getAll continues to return those notifications for a short time after they've been dismissed. One way for us to explicitly handle this would seemingly be to use notifications.onClosed to clear notifications using notifications.clear, which would then hopefully prevent dismissed notifications from being returned by notifications.getAll next time it's invoked.

jamespizzurro avatar Dec 10 '23 17:12 jamespizzurro

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jan 10 '24 00:01 github-actions[bot]