Reproduction of a bug in firebase/firebase-js-sdk#7784
git clone https://github.com/jcubic/firebase-sw-bug.git
cd firebase-sw-bug
npm instal
npm run dev
- Open URL: http://localhost:5173/
- click the chat button
First time there is an error:
firebase_messaging.js?v=1da0b173:1020 Uncaught (in promise) AbortError:
Failed to execute 'subscribe' on 'PushManager': Subscription failed - no active Service Worker
at getPushSubscription (firebase_messaging.js?v=1da0b173:1020:37)
at async getTokenInternal (firebase_messaging.js?v=1da0b173:955:28)
Second and next time error:
Uncaught (in promise) AbortError: Registration failed - push service error