Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-thakur committed Mar 29, 2020
1 parent 6af40bf commit e34c77b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@

# Firebase Cloud Messaging with ReactPWA

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

Clone the repo: `git@github.com:yash-thakur/pwa-fcm.git && cd pwa-fcm`
Clone the repo: `git@github.com:yash-thakur/pwa-fcm.git && cd pwa-fcm`

Make the following necessary changes:
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`.
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`
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](https://firebase.google.com/docs/cloud-messaging/js/first-message) and open **Notification Composer**.
Paste the **token** and send the *Test Notification*
Open the browser (`http://localhost:3003`) with **Developer Tools** and note the `Current Token` from the console.
Go to the [Firebase Notification Tester](https://firebase.google.com/docs/cloud-messaging/js/first-message) and open **Notification Composer**.
Paste the **token** and send the *Test Notification*

0 comments on commit e34c77b

Please sign in to comment.