Skip to main content

How to Connect Firebase with your Web News

  1. First you need to create a Web project inside your Firebase Project.
    For that open your firebase project in console and click on this tiny web icon:

    News

  2. After clicking on Web app you will be able to see this Screen.
    Add your web app name and also make sure you don't forget to check the checkbox.

    News

  3. Now Copy this Firebase Credentials.

    News

  4. And paste this your Credentials in .env and public/firebase-messaging-sw.js File.

    News

    News

  5. Open firebase account go to project settings -> cloud messaging -> Web configuration and select key and paste in .env file

    News

    News

    News

  6. Note: Skip this Step if you have already copy pasted the credentials
    If you have forget to copy your firebase credentials then you can always find your credentials by following these steps:

    News