Skip to Content
Serverless Web Applications with React and Firebase
book

Serverless Web Applications with React and Firebase

by Mayur Tanna, Harmeet Singh
April 2018
Intermediate to advanced content levelIntermediate to advanced
284 pages
6h 43m
English
Packt Publishing
Content preview from Serverless Web Applications with React and Firebase

Configuring the browser to receive messages

First of all, you will need to add a web app manifest from https://developers.google.com/web/fundamentals/web-app-manifest/file in our project and add the following to it:

{  "gcm_sender_id": "103953800507"}

It tells the browser that FCM is allowed to send the messages to this App. The 103953800507 value is hard-coded and must be the same in any of your App. The web app manifest is a simple JSON file and will contain the configuration metadata related to your project, such as the start URL of your App and App icon details.

We have created a manifest.json file in the root folder of the code and added the preceding content to it.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Web Applications with Firebase

Building Web Applications with Firebase

Gareth Brown
React Native in Action

React Native in Action

nader dabit, Nickie Buckner

Publisher Resources

ISBN: 9781788477413Supplemental Content