In case of multiple notifications from the same site (pushed by Chrome browser) Notification applet in tray shows only last one.

E.g. using this demo https://gauntface.github.io/simple-push-demo/ I pushed 3 notifications, but in tray I see only the last one.

At the same time system notifications pushed by notify-send tool:

/usr/bin/notify-send "hello"

showed as expected, every notification is in the list.

Is there a way to prevent notification overriding?


It seems each notification must have unique id, otherwise it will be overwritten. All notifications are visible after replacing static id to random:

chrome.notifications.create(Math.random().toString(36).substring(7), {
                title: 'title',
                message: 'text'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.