【问题标题】:Firebase analytics shows activity in other countriesFirebase 分析显示其他国家/地区的活动
【发布时间】:2018-05-20 09:53:16
【问题描述】:

我目前正在开发一个应用程序,并且我在 Google Play 中有相关测试人员的 alpha 版本,它仅在瑞典可用。

我使用Firebase 为每个用户在服务器上存储数据,我还使用Firebase 登录。

根据我的 FireBase 控制台中的authorization 和database,我是唯一一个测试过它的人。但是,在分析中,它说United States 中有活动!这怎么可能?与 Firebase 的服务器有关吗?

我想到了我的数据库的规则,我有以下几点:

{
  "rules": {
    // Give any logged in user admission to "users" so that they can create a new entrance for themselves
      ".write": "auth != null",
    ".read": "auth != null",
        "users": {
        "$user_id": {
            // Grants write access to the owner of this user account
          // whose uid must exactly match the key ($user_id)
         ".write": "$user_id === auth.uid && auth != null",
            ".read": "$user_id === auth.uid && auth != null"
        } 
        }
    }
}

有什么遗漏吗? 目的是只有登录的用户才能写入数据库并且只能写入他们的特定文件夹。

我也有我昨天测试过的inAppSubscription,也许这会触发一些使它看起来像出现在US 中的东西?

【问题讨论】:

    标签: firebase firebase-realtime-database firebase-authentication firebase-analytics


    【解决方案1】:

    一种可能性是您为您的应用启用了Pre-launch Report 生成。您可以通过查看 Google Play 管理中心中的发布前报告页面来确认这一点。在发布管理下查找它。

    启用发布前报告后,您的应用的每个版本都会使用 Firebase 测试实验室在少数 (~10) 台设备上运行。即使是 alpha 版本和内部测试轨道也会发生这种情况。

    发布前报告:总结了在自动测试您的 Alpha 或 Beta 测试应用的设备兼容性时发现的问题, 显示问题和各种安全漏洞 Firebase 测试实验室中的设备。

    就您而言,测试实验室设备可能位于美国。

    更多详情请关注Pre-launch Report here。

    【讨论】:

    • 非常感谢,原来如此。因为我是 Firebase 的新手,所以想弄清楚它是什么。
    猜你喜欢
    • 2021-12-28
    • 1970-01-01
    • 2020-02-27
    • 1970-01-01
    • 1970-01-01
    • 2021-08-10
    • 1970-01-01
    • 2015-11-27
    • 1970-01-01
    相关资源
    最近更新 更多