yarn
or npm install
to get your Node.js dependencies.yarn start
or npm run start
to spin up the development server../src/components/messaging.js
and ./public/sw.js
.sw.js
filename../src/components/messaging.js
named registerServiceWorker
/sw.js
and then, once that's done, tell messaging to use /sw.js
instead of firebase-messaging-sw.js
.firebase-messaging-sw.js
and let Firebase Messaging register that file automatically./sw.js
.