076518ebb9 | ||
---|---|---|
.. | ||
images | ||
.eslintrc | ||
README.md | ||
config.sample.js | ||
demo.js | ||
index.html | ||
main.js | ||
manifest.sample.json | ||
service-worker.js |
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:
- Create a project on the Firebase Developer Console.
- Go to Settings (the cog near the top left corner), click the 'Cloud Messaging Tab'.
- Create a copy of config.sample.js called config.js.
- Create a copy of manifest.sample.json called manifest.json.
- Replace
<Your Cloud Messaging API Key ...>
in your newconfig.js
file with your own API key from your new project on Firebase Developer Console. - Replace
<Your Cloud Sender ID ...>
in your newmanifest.json
with your own sender ID from the Firebase Developer Console project.
Related Samples
Push messaging and notifications are built on service workers.