Replies: 3 comments 2 replies
-
Whenever it is stopped, I no longer see firebase-messaging-sw.js in Sources. If I try to manually click on start I get Using Chrome, for reference. I manually register the service worker and it looks like this: const serviceWorkerRegistration = await navigator.serviceWorker.register(`/firebase-messaging-sw.js?${new URLSearchParams(firebaseConfig).toString()}`, {
scope: '/firebase-cloud-messaging-push-scope',
type: 'module',
})
try {
await serviceWorkerRegistration.update()
} catch (error) {
/* it is non blocking and we don't care if it failed */
} |
Beta Was this translation helpful? Give feedback.
-
I'm seeing the same thing. Trying to find a solution. |
Beta Was this translation helpful? Give feedback.
-
Hello, Did anyone find a solution to this ? |
Beta Was this translation helpful? Give feedback.
-
I followed https://firebase.google.com/docs/cloud-messaging/js/receive and am using type module. However, after some period of time, the service worker ends up with the "activated and is stopped" status and I no longer get notifications.
What is the best way to handle this? The documentation is lacking for this type of scenario.
Beta Was this translation helpful? Give feedback.
All reactions