Let's say I want to show the same notification each time something happens. That's what I currently use:
chrome.notifications.create(id, {
type:"basic",
title:"Title",
message:"My message",
iconUrl: "icon.png",
}, notificationResult);
But sometimes the notification doesn't appear.
Is that an id
thing ? Do I need to reuse an already created notification ? Can I not create a new notification with the same id
?
I tried to do a var notification = chrome.notifications.create(id .... )
and do a notification.show()
in case I already created one with the same id
but that also didn't solve it.
So - do I need to recreate an existing notification each time I want to show the same one (which currently doesn't work for me), or is there a different way? How to make sure it pops every time?