You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: push-messaging-and-notifications/README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,12 @@ Learn more at https://www.chromestatus.com/feature/5416033485586432 and https://
5
5
6
6
To use this sample please do the following:
7
7
8
-
1. Create a project in the [Google Developer Console](https://console.developers.google.com) (detailed instructions are available at https://developer.android.com/google/gcm/gs.html)
9
-
1.Enable GCM support
10
-
1. Create a copy of [config.sample.js](config.sample.js) called config.js
11
-
1. Create a copy of [manifest.sample.json](manifest.sample.json) called manifest.json
12
-
1. Replace `<Your Public API Key ...>` in your new `config.js` file with your own API key from the Google Developer Console project
13
-
4. Replace `<Your Project Number ...>` in your new `manifest.json` with your own project number from the Google Developer Console project
8
+
1. Create a project on the [Firebase Developer Console](https://console.firebase.google.com).
9
+
1.Go to Settings (The cog near the top left corner), click the 'Cloud Messaging Tab'.
10
+
1. Create a copy of [config.sample.js](config.sample.js) called config.js.
11
+
1. Create a copy of [manifest.sample.json](manifest.sample.json) called manifest.json.
12
+
1. Replace `<Your Cloud Messaging API Key ...>` in your new `config.js` file with your own API key from your new project on Firebase Developer Console.
13
+
4. Replace `<Your Cloud Sender ID ...>` in your new `manifest.json` with your own sender ID from the Firebase Developer Console project.
14
14
15
15
# Related Samples
16
16
Push messaging and notifications are built on [service workers](https://github.com/GoogleChrome/samples/tree/gh-pages/service-worker).
0 commit comments