A presentation about using service workers to provide push notification and offline capabilities in React apps
I made a demo app that shows one potential approach for implementing push notifications via a service worker in a React app. It uses Firebase Cloud Messaging, a Firebase Function, and a Firebase Firestore to implement the push notifications. It's no longer setup locally (to avoid cloud charges), but you can view the code for the app and/or setup the demo in your own environment.
To run this slide deck:
- Run
npm install
to install the dependencies - Run
npm start
on the command line in the root folder where the code is stored - Go to
http://localhost:3000
in your browser