Web应用程序未在Firebase项目控制台中注册 [英] Web application not registering in Firebase project console

查看:51
本文介绍了Web应用程序未在Firebase项目控制台中注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目控制台中,我收到此消息.

In my project console, I get this message.

项目FancyProject中目前没有应用

There are currently no apps in the project FancyProject

然后,我收到了将Firebase包含在我的应用程序的脚本标签中的说明.

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

但是,我已经将它包含在我的React应用程序中,如下所示,并且已经检查以确保它已注册.我也可以在应用程序中毫无问题地更新Firebase数据库.为什么不会在我的项目控制台中将其添加为应用程序?

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

推荐答案

这是预期的行为. Firebase控制台的应用程序列表中仅添加了iOS和Android应用程序.纯粹在此处显示了Web链接/摘录,作为访问Web应用程序设置的简便方法.

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.

这篇关于Web应用程序未在Firebase项目控制台中注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆