Push Messaging and Notification Sample
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
- Replace
<YOUR API KEY HERE>
in main.js with your own API key from the Google Developer Console project - Replace
<YOUR PROJECT NUMBER>
in manifest.json with your own project number from the Google Developer Console project
Related Samples
Push messaging and notifications are useful in web apps that use service workers.