Web application not registering in Firebase projec

2019-02-21 21:28发布

问题:

In my project console, I get this message.

There are currently no apps in the project FancyProject

I then receive the instructions to include Firebase in a script tag in my application.

However, I have already included it in my React application as the following and I have checked to make sure that it registers. I am also able to update my Firebase database as well in my application with no problems. How come this doesn't get added as an app in my project console?

import Firebase from 'firebase'

export const config = {
  apiKey: "<APIKEY>,
  authDomain: "<AUTHDOMAINLINK>,
  databaseURL: "<DATABASEURL>",
  storageBucket: "<STORAGEBUCKET>",
  messagingSenderId: "<SENDERID>"
}


let app = Firebase.initializeApp(config)
console.log(app.name) // this registers!


export const ref = Firebase.database().ref()
export const firebaseAuth = Firebase.auth

回答1:

This is expected behavior. Only iOS and Android apps are added in the list of apps in the Firebase Console. The web link/snippet is purely shown there as an easy way to access the settings for your web app.