4,750 questions
0 votes
0 answers
29 views
Javascript notificationclick is not called on Flutter web app debug build
I want to open a new page on notification click in my Flutter web app. Here is my service worker: console.log("SW: test.js loaded"); self.addEventListener("push", event => { console.log("SW: ...
0 votes
0 answers
51 views
Fetch event does not fired in service-worker when cors request was sent in webpage [closed]
Here is my code. Both index.html and service-worker.js are served on http://localhost:8080. index.html <!doctype html> <html lang="zh"> <head> <script> if ...
0 votes
0 answers
23 views
Mobile PWA redirects to login on external public URL while desktop PWA works fine
I have a PWA installed on both desktop and mobile. I want it to open a public URL: https://fj4fkaoplyuwyexf1mob.app.clientclub.net/communities/groups/mvp-love-hub/home?invite=690ad2c50e22b19a200b4afa ...
-2 votes
0 answers
64 views
Why doesn't my .NET website support HTTP/3 in Chrome/Firefox? [closed]
I have a .NET website running on an internal IIS10/Windows Server 2022 machine. It has an internal SSL cert authorised by our domain. It works with HTTP/1.1 and HTTP/2. It's configured to pass an alt-...
0 votes
0 answers
19 views
How to debug service worker in phone-installed PWA?
I am having issues with fetch() statements in my service worker in a progressive web app installed on my Android phone (with Chrome). Ordinarily this would be easy to debug by sending messages to ...
1 vote
1 answer
79 views
How to display notifications in manifest v3 service worker?
I'm having trouble displaying notifications from a chrome extension service worker while migrating from manifest v2 to v3. chrome.notifications.create appears to be deprecated and throws an Unknown ...
1 vote
0 answers
159 views
Prefetch HTML page AND external resources with service worker
I want to use a service worker to precache a webpage on install. It is very easy to precache the HTML itself self.addEventListener('install', (event) => { event.waitUntil( caches.open('v1') ...
1 vote
1 answer
93 views
How to use automatically generated service worker example in Rails 8? [closed]
I realised that Rails 8 generated automatically a service worker file for a new app. It seems to be useful for web push notifications, and I would like to use push notifications but I do not know how ...
0 votes
1 answer
57 views
Angular app still offline after adding ServiceWorker
I want to make a PWA app with Angular 19 that is available offline. I followed the official documentation to install the ServiceWorker. But when I simulate the offline status in the browser, the app ...
0 votes
0 answers
63 views
PWA content-security-policy Failed to execute importScripts on WorkerGlobalScope
I've got a PWA app that works fine with script-src 'self'; worker-src 'self' content-security-policy header and I'm trying to tighten security using hashes. I have the index.html file like below <...
0 votes
0 answers
57 views
Service Worker Failures on ChromeOS (Startup Timeout / DETACH_STALLED_IN_STOPPING)
I’m seeing a rare but recurring issue with my Chrome extension’s service worker. The extension uses a workaround to keep the service worker persistent and always active. It has an offscreen script and ...
0 votes
1 answer
53 views
Service worker stops intercepting img fetchs after a certain time in Firefox
I'm using my React app service worker to intercept certain fetchs to concatenate to their urls a token. It works good on the initial page load, but after a certain time, when I navigate the sw stops ...
2 votes
1 answer
572 views
How to install a Progressive Web App (PWA) on Android
I have a PWA that works on a desktop browser and shows the install icon in the address bar (Brave and Chrome browsers). There is a manifest.json and the service worker (sw.js) is recognised, and ...
0 votes
1 answer
137 views
Safari throws "Response served by service worker has redirections"
I'm building a PWA with Workbox and getting this error only in Safari: Response served by service worker has redirections This happens when I navigate to routes like /auth/login or /receipt after ...
0 votes
0 answers
105 views
ServiceWorker not reacting on periodicSync event
In the web app, it looks good since onSuccess gets called, but the only console log from the service worker I get is the one from initializing it. Somehow, it looks like listening for the periodicsync ...