chrome.notifications in an Opera Extension ...
-
A Former User last edited by
I am trying to use notifications in my extension. According to the Opera documentation, "Notifications" are supported if "type" is "basic" which my notification is.
I added a callback and I can see that "chrome.notifications.create()" creates a notification and passes the notification id to the callback function. However the notification never appears and if I use "chrome.notifications.onClosed.addListener()" I can see that my notification is immediately being closed by the system (ie. the "byUser" parameter is "false").
Why is it doing this and how can I stop it?
PS. I do have "notifications" in my manifest
-
A Former User last edited by
*** UPDATE IF YOU HAVE THE SAME PROBLEM ***
It turned our the problem was Windows "Quiet hours" which was muting the notification the moment you tried to display it, meaning it never actually gets shown to the user. Turn off "Quiet hours" and the notification displays normally.
Of course this doesn't help much if you're trying to develop an extension because you can't ask the user to turn off "Quiet hours", but at least you know what was causing the problem.