Skip to main content

All Questions

1 vote
1 answer
550 views

Can't catch FCM 'notificationclick' event in service worker using firebase messaging with Nuxt.js and Vue.js

Having trouble seeing any events other than install, activate, or push in my firebase-messaging-sw.js. Notifications are being received and served, but I am unable to see the event handler for ...
kiwi's user avatar
  • 21
5 votes
1 answer
527 views

Safari browser always sees an update to unchanged service worker

I've built a VueJS PWA and used register-service-worker to manage a service worker. I've built the app so when a new route is visited, it manually checks for an update to the service worker. If there ...
David's user avatar
  • 16.8k
0 votes
0 answers
2k views

Vite PWA plugin - add to home screen event

I'm trying to add an installable button to my PWA application. Everywhere I find information about beforeinstallprompt event but i cant listen it. I tried this code: window.addEventListener("...
thepanmaster's user avatar
6 votes
2 answers
2k views

PWA - Frontend doesn't update even after a hard refresh

Below is the configuration of our nuxt and nuxt-pwa configuration. Nuxt pwa is recognising a new version available and we prompt user to do a hard refresh/reload. And on reload - new UI also starts to ...
Pranav C Balan's user avatar
1 vote
2 answers
1k views

Cache Service worker for localhost can't be remove and unregistered

Tried to uninstall chrome, uninstall node and so on. But I still get cached and it can't be removed, when I run other projects with the same port without any service worker, I also get cache by this ...
Hans Sagita's user avatar
5 votes
1 answer
2k views

Import modules from HTTPS in a Service Worker

I'm attempting to implement Firebase Cloud Messaging for the web using their v9 SDK, which is heavily pushing using Javascript modules... and I need to register the service worker inside of a Vue ...
zyx's user avatar
  • 131
2 votes
0 answers
953 views

How to use service workers in Quasar Framework (Vue.js)

So i am building a mobile PWA built with capacitor for Android and iOS and i want to integrate a service worker to handle incoming push notifications from firebase while the app is closed. I followed ...
MyNameIsLinuxx's user avatar
8 votes
1 answer
3k views

How to solve service worker navigate "This service worker is not the client's active service worker" error?

I've created a service worker for my quasar pwa to manage fcm web background notifications. The purpose is to manage click on foreground and background notifications and redirect user to specific page ...
nulele's user avatar
  • 396
3 votes
2 answers
3k views

Service worker not generated when building vue 3

I have installed "@vue/cli-plugin-pwa": "^4.5.12", in my package.json, I have also added workbox configuration in my vue.config.js. The problem is, when I'm building the project ...
Ihsan Fajar Ramadhan's user avatar
1 vote
1 answer
1k views

Service Worker determine number of clients

We've got a SaaS app that's PWA capable and we're using Workbox for the grunt work. Up to now we've been following the tried and trusted recipe of displaying an update is available banner to the users,...
Neil Merton's user avatar
1 vote
0 answers
574 views

service worker Uncaught (in promise) TypeError: Failed to fetch in VueJS PWA

I've been trying to implement a service worker for my Vuejs PWA, and the code I have throws this error in the console right after the fetch event for my localhost URL, http://localhost:8080/ Uncaught (...
Orlando Grimany Calas's user avatar
1 vote
1 answer
878 views

Vue PWA: Check if response was from cache and how old it is

I'm using vue-pwa for my site and am currently using the NetworkFirst strategy for an API that I call inside my site. I now want to somehow detect if the response I received from the API was cached by ...
Zusor's user avatar
  • 88
2 votes
1 answer
2k views

SPA content refresh with constant updating

I know that recommended approach to updating SPA versions is to use service workers and alert user that he should refresh page. But what options do we have when there's lots of pages and new things ...
Trekstler's user avatar
2 votes
1 answer
448 views

TypeError: Failed to execute 'update' on 'ServiceWorkerRegistration': Illegal invocation

I have a VueJS app created using the CLI as a PWA. My service worker file looked like this: /* eslint-disable no-console */ import { register } from 'register-service-worker' if (process.env....
Lee's user avatar
  • 661
0 votes
1 answer
3k views

Failed to update a ServiceWorker for scope - HTTP error 400

I have a Vue PWA app, and in our error logs, I'm seeing hundreds of these for one particular user (myself and another person are unable to replicate this). Failed to update a ServiceWorker for scope ('...
ffxsam's user avatar
  • 27.8k

15 30 50 per page