You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to implement FCM in my PWA and from the firebase docs it is said to have service worker with exactly name firebase-messaging-sw.js or to provide a ServiceWorkerRegistration object to getToken method.
Now, I can use the sw parameter in next-pwa to rename the output file and it is working but I think it would be better if I can get the object instead of renaming the whole file just for one thing.
Summary
I'm currently trying to implement FCM in my PWA and from the firebase docs it is said to have service worker with exactly name
firebase-messaging-sw.js
or to provide a ServiceWorkerRegistration object to getToken method.Now, I can use the sw parameter in next-pwa to rename the output file and it is working but I think it would be better if I can get the object instead of renaming the whole file just for one thing.
Firebase getToken documentation: Here
Thank you
The text was updated successfully, but these errors were encountered: