Open
Description
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:
- git clone https://github.com/firebase/quickstart-js
- cd messaging/
- fill config.ts
- npm install -g firebase-tools
- firebase login
- firebase use --add
- npm install
- firebase emulators:start
- npm run dev
Observed Results:
- 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. - I followed the readme.md: https://github.com/firebase/quickstart-js/blob/master/messaging/README.md
Expected Results:
- What did you expect to happen?
It should give me the notifications