4,778 questions
0
votes
0
answers
19
views
How to debug extension service worker silently failing [duplicate]
When working on a extension service worker (MV3), many times a bug will cause the service worker to silently fail, making it remain inactive, and as far as I can tell without a way to attach Chrome ...
0
votes
0
answers
35
views
Server invisible cookies using service workers
Service Workers allow intercepting requests. Which mean we can create virtual pages that only exists in the browser and not reached servers.
If we create such a virtual page (say /cooks), and set a ...
0
votes
0
answers
11
views
When did ServiceWorker support arrive in Chrome for iOS
AFAIK as late as 2020 service worker support in WKWebView for non-Safari apps did not exist.
As best I can tell it's working fine today.
I cannot figure out though when this landed in what version of ...
0
votes
1
answer
35
views
Force Angular ServiceWorker to only proxy DataGroups / AssetGroups
By default the Angular ServiceWorker (ng add @angular/pwa) proxies all request but not only requests listed in it's configuration file (ngsw-config.json).
The problem is that some custom offline ...
0
votes
0
answers
30
views
fetching a mjpeg video stream on iOS throws "TypeError: Load failed" error
I have a webserver which delivers a small React SPA, in which a mjpeg video stream (streamed by the same webserver) is embedded.
Since the stream can only be viewed with authorization, the stream is ...
1
vote
0
answers
21
views
Service Worker notificationclick event, opening a specific page doesn't work (always opens the home)
My PWA is installed on both Android and iOS, and notifications are working correctly — except for the notificationclick event in the service worker.
No matter what I do, clicking a notification always ...
0
votes
0
answers
48
views
Migrating Angular app to microfrontends (native-federation) broke my caching strategy
I used to have a single Angular (monorepo) app in production. Users would often complain about cached/stale content, so I enabled an Angular Service Worker (PWA) to force updates whenever we deployed ...
0
votes
0
answers
39
views
FCM v1 Payload Mismatch: fcm_options.link vs click_action in SW [closed]
I’m using the Firebase Cloud Messaging (FCM) HTTP v1 API to send push notifications to a web app. The web app uses the Firebase JavaScript SDK (v11.2.0), and I have a firebase-messaging-sw.js file at ...
1
vote
0
answers
27
views
How to make a partially offline Laravel website page with PDF files using Service Workers?
I'm working on a web project built with PHP Laravel, and I need to make a specific page accessible offline. The page displays a list of items, and each item links to a PDF file. The website should ...
1
vote
0
answers
12
views
Can a service worker created with Workbox ignore every URL but a specific host?
The login mechanism of our SPA is handled by an reverse proxy. So every request to https://our.app.com/ is checked by the reverse proxy. If the session timeout is reached, the reverse proxy takes over ...
0
votes
1
answer
32
views
Firefox Service Worker import module giving TypeError
SW Registration failed with TypeError: ServiceWorker script at http://localhost/Vanilla/CacheManager.js for scope http://localhost/Vanilla/ threw an exception during script evaluation.
I'm getting the ...
1
vote
1
answer
41
views
Firebase Cloud Messaging - onMessage not triggering
I have the following code.
Client side registration code refresh
if (Notification.permission === 'granted') {
getToken(messaging, { vapidKey: process.env.PUBLIC_FIREBASE_FCM_VAPID_KEY }).then((...
1
vote
1
answer
59
views
navigator.serviceWorker.ready never resolves on Chrome only. Edge & Opera work, Firefox errors
In the following code, the ServiceWorker.READY method/promise never resolves: -
if ("serviceWorker" in navigator) {
await navigator.serviceWorker.register('/...
0
votes
0
answers
23
views
chrome.declarativeContent.ShowAction does not disable popup action for unmatched pages
The declarativeContent API in chrome extension is expected to disable the extension icon in toolbar if the page condition is not met, but I'm not able to get this working.
I picked the exact example ...
0
votes
1
answer
48
views
Firebase Cloud Messaging - Grouping and Dismissing
I have successfully sent and recieved push notifications using the following code.
server code
const admin = require('firebase-admin');
const message1 = {
token: '<Token>',
data: {
...