From the course: JavaScript: Progressive Web Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding Firebase Cloud Messaging to the project

Adding Firebase Cloud Messaging to the project - JavaScript Tutorial

From the course: JavaScript: Progressive Web Applications

Start my 1-month free trial

Adding Firebase Cloud Messaging to the project

- [Instructor] Before we can subscribe users and send push messages, we'll need to get a message service involved. Google provides the Firebase cloud messaging tool as its messaging service. To send push messages, we'll need to create a project within Firebase, and gain access to the unique identifier for our project. So let's log into the Firebase console at console.firebase.google.com. To get started, click on Add Project. Give your project a name. I'll just call this LinkedInLearning PWA, and then click on the Control or Controller terms and accept them, and click on Create Project. Once the project is created, click on Continue to open it in the console. Then tap the Settings icon in the top left corner, it's the one that looks like a gear, and choose Project Settings. Click on the Cloud Messaging tab, and there you'll see your server key and sender ID. We need to copy the sender ID and paste it into our manifest file. So you can hover your mouse over the Sender ID field and…

Contents