/push-messaging-and-notifications

push-messaging-and-notifications sample

Primary LanguageJavaScript

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:

  1. Create a project in the Google Developer Console (detailed instructions are availabl at https://developer.android.com/google/gcm/gs.html)
  2. Enable GCM support
  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 Public API Key ...> in your new config.js file with your own API key from the Google Developer Console project
  6. Replace <Your Project Number ...> in your new manifest.json with your own project number from the Google Developer Console project

Related Samples

Push messaging and notifications are built on service workers.