Push Messaging & Notifications

Available in Chrome 42+ & Chrome 42+

To use this sample please do the following:

  1. Create a project in the Google Developer Console.
  2. Under APIs enable Google Cloud Messaging for Android and Google Cloud Messaging for Chrome.
  3. Under Credentials, create a new key and select Server key as the type.
  4. Create a copy of [config.sample.js](config.sample.js) called config.js
  5. Create a copy of [manifest.sample.json](manifest.sample.json) called manifest.json
  6. Replace "<Your Public API Key ...>" in your new `config.js` file with your own API key from the Google Developer Console project.
  7. Replace "<Your Project Number ...>" in your new `manifest.json` with your own project number from the Google Developer Console project.



cURL Command to Send Push