Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Push Notifications with `{requireInteraction: true}` do not display on macOS

  • 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.

    1. Visit https://tests.peter.sh/notification-generator/#requireInteraction=true
    2. Accept notification permissions.
    3. Press "Display the notification"
    4. 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.

  • Thank you, I will report this issue.

  • Howdy,
    This is still an issue. Tested on Version:62.0.3331.43

    Please resolve soon

  • 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.

  • 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.

  • I did try that, @katochin but did not actually solve the problem. Even with notification selected for opera, requireInteraction does not generate a notification.

  • @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

Log in to reply