Skip to content

Latest commit

 

History

History

push-messaging-and-notifications

Push Messaging and Notification Sample

Learn more at https://www.chromestatus.com/feature/5416033485586432 and https://www.chromestatus.com/feature/5480344312610816

To use this sample please do the following:

  1. Create a project on the Firebase Developer Console.
  2. Go to Settings (the cog near the top left corner), click the 'Cloud Messaging Tab'.
  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 Cloud Messaging API Key ...> in your new config.js file with your own API key from your new project on Firebase Developer Console.
  6. Replace <Your Cloud Sender ID ...> in your new manifest.json with your own sender ID from the Firebase Developer Console project.

Related Samples

Push messaging and notifications are built on service workers.