• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    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 Fail from Forge of Empires

    Opera GX
    1
    1
    88
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • abnovia
      abnovia last edited by leocg

      Opera GX fails to display push notifications from the browser game Forge of Empires, despite permissions being granted and service workers active. The root cause appears to be Opera GX’s strict JSON parsing of PushMessageData, which crashes when the push message is plain text instead of valid JSON.

      Details:

      Site: https://se1.forgeofempires.com/game/index

      Service worker: webPushWorker.js

      Notifications: Permission granted manually in browser

      GX Control: RAM/CPU/Network limiters disabled

      OS: Windows 11

      Opera GX: Latest version as of July 2025

      Steps to Reproduce:

      Visit https://se1.forgeofempires.com/game/index? in Opera GX

      Accept notification prompt

      Wait for in-game push trigger (or simulate with DevTools → Application → Push)

      Observe that no notification is shown, and the following error appears in console:

      Uncaught SyntaxError: Failed to execute 'json' on 'PushMessageData': Unexpected token 'T', "Test push "... is not valid JSON
      at webPushWorker.js:5:25
      Why This Matters:

      Brave and Chrome handle this gracefully: either the push payload is formatted differently or .json() failures are silently handled.

      Opera GX appears to strictly enforce JSON parsing, leading to a crash if the data is just a plain string.

      Request:

      While the bug ultimately lies in Forge’s service worker, it would be helpful if Opera GX:

      Offered a fallback or more forgiving push message handling, or

      Surfaced this issue in DevTools warnings, or

      Reached out to major sites using push APIs (like Forge) for compliance guidance.

      Reproducibility: Always
      Impact: Blocks user-facing web push notifications on GX
      Workaround: Use Brave or Chrome

      Happy to provide logs or assist further. Please confirm whether this behavior is intended, or if future builds may soften the error behavior to match other Chromium browsers.

      Thanks!

      Reply Quote 0
        1 Reply Last reply
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-