From e34c77be8d24671031837e0be239f14a9ce7eb7a Mon Sep 17 00:00:00 2001 From: Yash Thakur Date: Mon, 30 Mar 2020 00:09:54 +0530 Subject: [PATCH] Update Readme --- readme.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/readme.md b/readme.md index d58510c..bb0f01e 100644 --- a/readme.md +++ b/readme.md @@ -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*