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.
  3. Under Credentials, create a new key and select Server key as the type.
  4. Replace "<YOUR API KEY HERE>" in main.js with your own API key from the Google Developer Console project.
  5. Replace "<YOUR PROJECT NUMBER>" in manifest.json with your own project number from the Overview page of your Google Developer Console project.



cURL Command to Send Push