Skip to content

yash-thakur/pwa-fcm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Cloud Messaging with ReactPWA

Here is a simple implementation of Firebase Cloud Messaging with React-PWA.

Clone the repo: [email protected]:yash-thakur/pwa-fcm.git && cd pwa-fcm

Make the following necessary changes:

  1. Update GCM-Sender ID in public/manifest.json.
  2. Update the Firebase Config in public/firebase-messaging-sw.js.
  3. Update the Firebase Config in fcm-config.js.

Run using npm i && npm start

Open the browser (http://localhost:3003) with Developer Tools and note the Current Token from the console.

Go to the Firebase Notification Tester and open Notification Composer.

Paste the token and send the Test Notification

About

Use FCM with React-PWA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published