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
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
2 votes
0 answers
384 views

Dynamically generate preCache files in Nuxt for workbox

I have a couple of files in my /static directory that I'd like the serviceworker to pre-cache. I'm aware that I can just manually configure this (https://pwa.nuxtjs.org/workbox#precaching) but I'd ...
Splatbang's user avatar
  • 786
3 votes
1 answer
9k views

Nuxt pwa not registering service worker

I am trying to run offline caching in Nuxt via the @nuxt/pwa package. It doesn't seen to register the service worker when I check the chrome devtool/application. I am not sure if I am missing ...
Sourabh Dev's user avatar
2 votes
1 answer
2k views

PWA: Polling for data in the background

My PWA App needs to poll for new "Notifications" from an API while the app is being used or in the background. I am using NuxtJS with Vuex and already have an action (Promise) that performs the ...
Werner Raath's user avatar
  • 1,512
20 votes
3 answers
4k views

How to implement Firebase Cloud Messaging (FCM) with Nuxt.js

I'm trying to implement Google's Firebase Cloud Messaging (FCM) into my Nuxt.js APP. So far I've installed firebase, created a firebase.js plugin inside ./plugins folder, imported and initialized ...
Karolis Stakėnas's user avatar
2 votes
0 answers
755 views

Vue Js register/update a ServiceWorker error

I trying to implement Firebase Push Notification into Vue Js and after doing watching this video https://www.youtube.com/watch?v=XdzXaW8IbBM I tried to implement it, but after writing below code in ...
Darshan Dave's user avatar