-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6af40bf
commit e34c77b
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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* |