Skip to content

Messaging: We are unable to register the default service worker error, firebase-messaging-sw.js, but I did not create any #5514

Answered by dopecoder
KissBalazs asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, Please take a look at https://firebase.flutter.dev/docs/messaging/usage#handling-messages for documentation.

You have to provide a vapidKey when getToken is called through flutter web.
The firebase-service-worker.js in not needed unless you want to receive notifications in the background.

This issue can be closed.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by KissBalazs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants