Questions tagged [service-worker]
A service worker is JavaScript code that, once registered with an associated origin and scope, will respond to browser-initiated events, even when the pages it controls are no longer open. By handling `fetch` events, service workers can provide custom network behavior, like offline support (via the Cache API). By handling `push` events, service workers can be "woken up" and display notifications.
service-worker
4,766
questions
0
votes
0
answers
14
views
Next config root html file name
In my next.js app (app router), I want to add a service worker. I want to add the root html file to the caches, but I'm not sure what it is called.
In development, it has its own custom name: my-app, ...
0
votes
0
answers
14
views
Is it possible to use Background Fetch Api for uploading file..?
I'm working on implementing the Background Fetch API in my Vue project to enable file uploads to an S3 bucket. The goal is to allow the upload process to continue even if the user closes the screen, ...
0
votes
0
answers
11
views
How to define what from the two iframe results were in service worker?
I have two iframe and one service worker
<iframe></iframe>
<iframe></iframe>
As a service worker I am at the destination
service worker
let iframeClientId = new Map()
...
0
votes
0
answers
7
views
PWA: notification sound, vibration , sound reminders without user gesture
I am currently developping an ordering-management-system. I chose PWA mainly for budget and skills reasons.
For this app, I need some important features to make sur the orders will be seen by the ...
0
votes
0
answers
24
views
Angular6 project has not detected new version deployment with service worker 6.1.10 version
I am working an Angular6 project with version detected popup with the service worker 6.1.10 it was working fine, but nowadays not working the version detected. I have placed below my code. I have ...
0
votes
0
answers
26
views
Push notification works unreliable
I have a very strange problem and didn‘t find anything about this issue online. I‘m using Firebase Hosting, Cloud Function & Cloud Messaging for a website I set up. On this website, subscribed ...
0
votes
0
answers
19
views
Message not received by worker service when files have been updated in JavaScript
I'm trying to force the update of some of my web app JavaScript files without having the client having to press Ctrl+F5 to force the refresh of these files but I'm having dreadful problems with the ...
-1
votes
0
answers
18
views
How can I fix the CORS error on serviceWorker.js?
I use the Cloudfare CDN for both domain.
This is my serviceWorker.js
/* Service worker */
const cacheName = "alessandro-tarparelli-site-v1"
const filesToCache = [
"/test/PWA/",
...
1
vote
0
answers
26
views
Service Workers and Change of CDN
I'm currently working to switch over a web application over from one CDN to another. Currently the application has a service worker in place and I'm hitting issues where the service worker is not ...
0
votes
0
answers
10
views
AudioWorklet not working when using a PWA on a different device on the same network
so Basically I have an audioworklet named audio-processor.js in the public folder, when i build using npm run build and then serve the pwa , the other device in the network on this line says
...
0
votes
0
answers
35
views
Background sync stops in PWA app when user is online in iPhone and user mobile goes in sleep mode or locked or screen turns off
I have created an PWA app in angular. In this app background syncing start on initial load in online mode. This background sync work well when the user iPhone screen is on and he switch to another app ...
-1
votes
1
answer
28
views
Fetching Location Via JavaScript Geological Api
I am developing a map where I track user's location via navigator.geolocation.watchPosition towards it's destination. Now what i want is to track location of the user in real-time when he has logged ...
0
votes
0
answers
57
views
String contains non ISO-8859-1 code point
When I'm trying run my electronjs app and use window.loadURL('https://example.test'), I catch the following error from PrecacheCacheKeyPlugin.
Uncaught (in promise)
TypeError: Failed to construct '...
0
votes
0
answers
18
views
How to handle SPA application reload to fetch current deployed version over firebase in react.js?
I am facing a problem where my application needs to do a hard refresh in order to reflect new changes after deploying latest version.
Went through multiple ways in order to solve this such as service ...
0
votes
0
answers
11
views
service worker doesn't work as expected doesn't return cached response instead fails
Hello I want to implement behavior when new deployed version to production doesn't make application crash for users that use that page.
E.g. User uses site , we deploy new version and after some time ...