【问题标题】:Get apiKey to firebase获取 apiKey 到 firebase
【发布时间】:2016-09-26 09:31:13
【问题描述】:

我需要获取 apiKey 到 firebase 应用程序。

在文档中的示例是:

var config = {
      apiKey: '<your-api-key>',
      authDomain: '<your-auth-domain>',
      databaseURL: 'https://tecki.firebaseio.com/',
      storageBucket: '<your-storage-bucket>'
    };
firebase.initializeApp(config);

并查看控制台、文档,而不是在哪里找到它。

【问题讨论】:

    标签: angularjs cordova ionic-framework firebase angularfire


    【解决方案1】:

    我是这样找到它的:

    1. 转至:https://console.firebase.google.com/

    2. Projects using Firebase 下单击您要为其获取配置的项目或单击“创建新项目”

    3. 点击红色的Add Firebase to your web app 按钮。见下图。 Add Firebase to your web app button

    希望对您有所帮助。

    祝你好运。

    【讨论】:

    • 注意:我必须在第 2 步和第 3 步之间单击ADD APP button。可能只有在您已经设置了其他应用程序时才需要。
    【解决方案2】:

    您可以通过转到项目概述部分看到这一点

    点击设置按钮=>进入项目设置

    在这里你可以找到 apikey

    【讨论】:

      【解决方案3】:

      很容易找到。你可以在这里找到你的 api 密钥。转到您的 firebase 项目并在此处执行 1,2,3

      【讨论】:

        猜你喜欢
        • 2021-04-14
        • 1970-01-01
        • 1970-01-01
        • 2018-02-12
        • 2019-03-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-11-23
        相关资源
        最近更新 更多