Push Messaging & Notifications
Available in Chrome 42+ & Chrome 42+
To use this sample please do the following:
- Create a project in the Google Developer Console.
- Under APIs enable Google Cloud Messaging for Android and Google Cloud Messaging for Chrome.
- Under Credentials, create a new key and select Server key as the type.
- Create a copy of [config.sample.js](config.sample.js) called config.js
- Create a copy of [manifest.sample.json](manifest.sample.json) called manifest.json
- Replace "<Your Public API Key ...>" in your new `config.js` file with your own API key from the Google Developer Console project.
- 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