Learn more at http://www.chromestatus.com/feature/5416033485586432 and http://www.chromestatus.com/feature/5480344312610816
To use this sample please do the following:
- Create a project in the Google Developer Console (detailed instructions are availabl at https://developer.android.com/google/gcm/gs.html)
- Enable GCM support
- Create a copy of config.sample.js called config.js
- Create a copy of manifest.sample.json called manifest.json
- Replace
<Your Public API Key ...>
in your newconfig.js
file with your own API key from the Google Developer Console project - Replace
<Your Project Number ...>
in your newmanifest.json
with your own project number from the Google Developer Console project
Push messaging and notifications are built on service workers.