service-worker-events Questions
1
I thought it would be rather simple but I am struggle to successfully send response then modify my cloned response that is being stored in cache inside my service worker.
Ultimately I want to app...
Slaton asked 1/10, 2019 at 23:33
0
This seems fairly basic however I can't find an answer on here.
The MDN official docs show that getting a notification to navigate back to the app should look like this:
self.addEventListener("...
Chevrotain asked 23/11, 2023 at 7:17
2
Solved
I'm still doing experiments in order to master service workers, and I'm facing a problem, probably because of my lack of expertise in JavaScript and service workers.
The problem happens when I want...
Hermon asked 3/2, 2021 at 16:13
7
Solved
In app.js,
I am checking the serviceWorker existence in navigator object and if available then registering the SW.
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./service...
Speculation asked 28/3, 2018 at 16:5
2
i'm struggling with promises in a service worker while using async/await syntax.
Following situation: I got a push notification and want to handle the click event. If i use the "old" syntax with th...
Limeade asked 15/11, 2017 at 23:30
2
I have a service worker. Here's the install event:
self.addEventListener('install', function (event) {
console.log('Installing Service Worker ...', event);
return self.skipWaiting()
.then(() =...
Juna asked 11/2, 2019 at 10:39
3
I am using service worker to handle background notifications. When I receive a message, I'm creating a new Notification using self.registration.showNotification(title, { icon, body }). I'm watching...
Terpstra asked 21/4, 2018 at 10:49
1
Solved
I am trying to implement different cache strategies using ServiceWorker. For the following strategies the way to implement is completely clear:
Cache first
Cache only
Network first
Network only
...
Selfabsorption asked 17/2, 2020 at 9:15
1
I am playing with service worker stuff.
I already made it as well as manifest json.
I want to trigger service worker start after following scenario:
Added push integration and sending push notifi...
Sheetfed asked 6/10, 2019 at 15:22
3
Solved
with regards to this api https://developer.mozilla.org/en-US/docs/Web/API/Cache, I'd like to also set the cache lifetime.
let's say, cache this request for no longer than 10 minutes
Gymnasiarch asked 17/4, 2019 at 13:58
1
Solved
Is it possible to read from local storage and track geolocation in PWAs with a service worker while app is not open on phone (in background)
So far my research is pointing to no, and I am finding ...
Trunnion asked 15/1, 2019 at 23:30
2
Solved
I use FCM push notification in my website and I want user can come into my website when He or She clicks on the push notification. Please notes that The user may be in other app or in other browser...
Millford asked 3/12, 2018 at 13:34
0
I want to implement effective 2 way communication between service worker and client web page.
here is my code
function twoWayMsg() {
if (navigator.serviceWorker.controller) {
var messageChanne...
Jeroldjeroma asked 4/11, 2018 at 6:7
1
Okay now i am working on Angular 6 webApp and it is offline first. I am able to setup a fully functional service worker which can retrieve and store requests and response and what not. But, at one ...
Billmyre asked 9/10, 2018 at 13:6
2
Solved
I keep getting this error:
Uncaught (in promise) DOMException: Failed to execute 'respondWith' on 'FetchEvent': The event has already been responded to.
I know that service workers automatical...
Expander asked 19/10, 2017 at 20:57
1
Hi I have an ejs template on express which generates HTML. I have written my service worker registration code in this template which is common for all pages of the website and thus, the registratio...
Wittgenstein asked 1/6, 2018 at 5:59
1
I have this very basic question
I'm striving to understand the Service Worker life cycle, or even better, what in practical terms initialize and change the states.
I got 2 questions right now:
1...
Juanjuana asked 19/2, 2018 at 3:19
1
Solved
It seems that fetch event inside service worker isn't receiving request headers, although it is stated in MDN documentation:
You can retrieve a lot of information about each request by calling p...
Club asked 16/11, 2017 at 16:53
1
© 2022 - 2025 — McMap. All rights reserved.