Web application not registering in Firebase project console

a 夏天 提交于 2019-12-04 03:13:05

问题


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.



来源:https://stackoverflow.com/questions/41576213/web-application-not-registering-in-firebase-project-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!