Firebase 分析显示 activity 在其他国家/地区

Firebase analytics shows activity in other countries

我目前正在开发一个应用程序,我在 Google 与相关测试人员一起玩 alpha 版本,它只在瑞典可用。

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

根据我的 FireBase 控制台中的 authorizationdatabase,我是唯一测试过它的人。但是,在分析中,它说 United States 中有 activity!这怎么可能?它与 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?

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

下寻找它

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

Pre-launch reports: Summarizes the issues found when your alpha or beta test apps are tested automatically for device compatibility, display issues, and security vulnerabilities on a wide range of devices in Firebase Test Lab.

在您的情况下,测试实验室设备可能位于美国。

有关 Pre-launch Report here 的更多详细信息。