DEV Community

Discussion on: How To Create A PWA With JavaScript

Collapse
 
mma15 profile image
Mubashir Ali Mir

Thank you for the quick response! So just to confirm, with this, the sw.js is able to function properly and firebase is still able to talk to the background app without us registering it on our side?

Thread Thread
 
devpato profile image
Pato

you will have the firebase-messaging-sw.js and the sw.js file like I did on the repo. Make sure the firebase-messaging-sw.js has that name. That's how firebase code will look for that file