Open emremutlu08 opened 4 months ago
Did you fix it? Stuck with the same problem. I would like to know the solution.
same here! I need a f*ing working example! everything worked until 2 weeks ago.. now nothing works and the examples don't work too!
Any update on this? Just came across this issue myself.
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:
Expected Results: