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 already gave the permissions however the ui is still asking for permissions. In the browser console, it says: "An error occurred while retrieving token. FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker for scope ('http://localhost:5173/firebase-cloud-messaging-push-scope') with script ('http://localhost:5173/firebase-messaging-sw.js'): ServiceWorker script evaluation failed (messaging/failed-service-worker-registration). "
What happened? This could be a description, logs, etc.
Nothing changed.
"Click REQUEST PERMISSION button to request permission for the app to send notifications to the browser." this does not works.
For anyone else having this problem, I found a workaround. If I follow the steps provided under the "Running the app using the Firebase CLI" header in the readme.md then it generates the registration token.
It is also worth noting the examples given to send a message use the legacy approach and should be updated to the newer suggested way to push.
Step 1: Describe your environment
Operating system: MacOS
Browser: Safari/Chrome
Firebase SDK version: 10.1.0
Step 2: Describe the problem:
I already gave the permissions however the ui is still asking for permissions. In the browser console, it says: "An error occurred while retrieving token. FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker for scope ('http://localhost:5173/firebase-cloud-messaging-push-scope') with script ('http://localhost:5173/firebase-messaging-sw.js'): ServiceWorker script evaluation failed (messaging/failed-service-worker-registration). "
Steps to reproduce:
Observed Results:
Nothing changed.
"Click REQUEST PERMISSION button to request permission for the app to send notifications to the browser." this does not works.
Expected Results:
It should give me the notifications
The text was updated successfully, but these errors were encountered: