Push Notifications with `{requireInteraction: true}` do not display on macOS
-
jkasten last edited by leocg
Issue
If a push notification received is displayed with{requireInteraction: true}
on macOS it is not shown at all. The issue is reproducible on macOS 10.14.2 on both Opera Stable (58.0.3135.90) AND Opera Dev channel (60.0.3254.0). This is not an issue on either Stable versions of Opera for Window 10 or Opera Android. Also NOT an issue on Chrome Stable (72).Steps to Reproduce
Issue can be reproduce when displaying a notification from a received event with{requireInteraction: true}
.self.registration.showNotification("Test", { requireInteraction: true });
Or as a quick test follow these steps.
- Visit https://tests.peter.sh/notification-generator/#requireInteraction=true
- Accept notification permissions.
- Press "Display the notification"
- Note that nothing happens on Opera for macOS.
Repeating these steps after unchecking "Req. interaction" displays just fine.
https://tests.peter.sh/notification-generator/Thanks.
-
A Former User last edited by
Howdy,
This is still an issue. Tested on Version:62.0.3331.43Please resolve soon
-
froodian last edited by
I created an account just to +1 this issue. Not respecting the
requireInteraction: true
flag would be one thing, but not displaying the push at all is very undesirable behavior, and Opera Mac is the only browser displaying this shortcoming. -
A Former User last edited by
For mac, select [Preferences]-[Notifications] to set the notification display method for each application.
You can select None / Banner / Notification Panel.
The default is a banner, which matches the behavior of requireInteraction false.
In case of notification panel, requireInteraction matches true behavior.The behavior cannot be changed from the application due to OS limitations.
-
timrydermcd last edited by
I did try that, @katochin but did not actually solve the problem. Even with notification selected for opera, requireInteraction does not generate a notification.
-
jkasten last edited by
@kmielczarczyk This no display issue when
requireInteraction = true
is now also an issue on Chrome on macOS 10.15 too. However this original Opera issue was a problem even for macOS 10.14.See this Chromium issue for more details on the macOS 10.15 issue.
https://bugs.chromium.org/p/chromium/issues/detail?id=1007418
@kmielczarczyk Maybe Opera can implement the same work around? Or will Opera just get this downstream automatically in the future?As far as those who use the OneSignal service to send Web Push we have worked around this by disabling
requireInteraction
when running Opera on macOS 10.14+.
https://github.com/OneSignal/OneSignal-Website-SDK/releases/tag/150710 -
jkasten last edited by
Notifications are now displaying in macOS when
{requireInteraction: true}
is set, however now it has no affect. Tested on Opera 74.0.3911.154 on both macOS 10.15.6 and 11.2.1.
More details on this as well as Chrome and Firefox results:
https://github.com/OneSignal/OneSignal-Website-SDK/issues/711#issuecomment-782576683Since
{requireInteraction: true}
is no longer a critical issue where the notification is not being displaying I would be ok with this being marked as resolved.Since
requireInteraction
has no effect I would consider this a feature request instead for macOS.
@kmielczarczyk Do you want me to open a new ticket for this a feature request and close this one as the bug being fixed? -