All Questions
Tagged with service-worker vue.js
125 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 ...
3
votes
2
answers
3k
views
Failed to load resources with vite pwa plugin in dev mode
I have a really simple vite app on which I try to use vite-pwa plugin in order to use it offline. It works well when building the app (npm run build and then npm run preview), but not in dev mode. ...
0
votes
0
answers
93
views
After deploying a new version to the web app should detect that there was a new version deployed. How do I implent in my vue application
I need to implement "After deploying a new version to the web app should detect that there was a new version deployed". Is this possible using service worker? How I do it? If not what is the ...
0
votes
0
answers
155
views
Implementing Service worker in ionic (capacitor) + vue app
Is it possible to implement service worker for hybrid app (ionic + vue + capacitor). I am getting registration failed error. Thank you!
3
votes
0
answers
2k
views
Service-Worker not caching files with Vite + VitePWA
I got a service-worker.js that works fine with Webpack but now after migrating to Vite, the same service-worker.js is registered but not caching files and offline mode is not working (without any ...
1
vote
0
answers
27
views
Bundling service worker with modules using Vite and Rollup [duplicate]
I need some help with bundling a service worker that uses modules in a Vue3 project with Vite. Modules inside service worker are not supported in firefox, so I need a bundler to help me with that. I'm ...
0
votes
0
answers
315
views
How to cache files built by Vue in service worker (not manually)
I have this Vue application that I wish to cache all files using service workers but every time I build the application to deploy and test, the filename for the js files created by vue are different:
...
1
vote
0
answers
159
views
cache empty after adding PWA to home screen on Safari iOS
Im building a PWA with VueJS in combination with Ionic. I've also installed the @vue/cli-plugin-pwa.
What I'm trying to achieve is storing an url param in cache with the cache API when a user visits ...
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 ...
1
vote
0
answers
314
views
SignalR in service worker
Is it possible to use SignalR instead of firebase to send notification in Service Worker?
so that the notification can be shown if the user's browser is closed.
Thank you for helping me with my code.
...
1
vote
1
answer
5k
views
Can't get Vite to build app and js file into the same dist
I'm having trouble configuring vite.config.js so that I can have both my Vue app and a service worker file live in the dist folder. My service worker was working with webpack previously but I've just ...
1
vote
0
answers
957
views
Service worker cache in VueJS
I have an application in VueJs using axios, service worker and recently I'm struggling with what it seems a new bug that came with our last update. A bit of context first, the URL in production of ...
6
votes
1
answer
3k
views
Intercept img src for adding Authorization header with service worker in Vue 3
I want to show a private image served by Laravel. Since Laravel is working as an API any request must be done with Authorization header containing a Bearer token.
I'm working with Quasar, but I guess ...
0
votes
1
answer
894
views
How can I overcome service worker's cache
A legacy app presents an issue with service worker cache preventing me from serving a new app.
short description:
Legacy app was written in Vue, with vite-plugin-pwa (zero config service worker). When ...
0
votes
1
answer
1k
views
Firebase Cloud Messaging Unable to Get Token on Vue 3
I am creating an App that will get real time notification with firebase cloud messaging, but it seems does not work for me.
I am following their documentation an put firebase-messaging-sw.js in root ...