samples/push-messaging-and-notifica...
Piper Chester 076518ebb9 Fix typo (#489) 2017-06-05 14:45:49 +01:00
..
images With README and appropriate index.html 2015-02-26 12:53:32 +01:00
.eslintrc ESLint, with the Google config 2015-12-11 17:04:47 -05:00
README.md Fix typo (#489) 2017-06-05 14:45:49 +01:00
config.sample.js Update config.sample.js 2016-10-07 13:22:32 -07:00
demo.js Trialing the gulp linting 2015-09-02 12:14:18 +01:00
index.html Correct spelling (#461) 2016-12-31 21:28:14 +01:00
main.js ESLint, with the Google config 2015-12-11 17:04:47 -05:00
manifest.sample.json Update manifest.sample.json 2016-10-07 13:22:52 -07:00
service-worker.js ESLint, with the Google config 2015-12-11 17:04:47 -05:00

README.md

Push Messaging and Notification Sample

Learn more at https://www.chromestatus.com/feature/5416033485586432 and https://www.chromestatus.com/feature/5480344312610816

To use this sample please do the following:

  1. Create a project on the Firebase Developer Console.
  2. Go to Settings (the cog near the top left corner), click the 'Cloud Messaging Tab'.
  3. Create a copy of config.sample.js called config.js.
  4. Create a copy of manifest.sample.json called manifest.json.
  5. 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.
  6. Replace <Your Cloud Sender ID ...> in your new manifest.json with your own sender ID from the Firebase Developer Console project.

Related Samples

Push messaging and notifications are built on service workers.