"app_store"的值在哪里?在Firebase中来自哪里? [英] Where is the value of the "app_store" in the Firebase come from?
问题描述
在 Google Firebase官方文档中,user_dim.app_info.app_store
是定义为
安装了此应用的商店.
The store which installed this app.
在检查了我的数据之后,我已经获得了该键的一些值,例如
And after checked my data, I've gotten some values of this key, like
com.android.vending
manual_install
cm.aptoide.pt
com.baidu.androidstore
test
com.google.android.feedback
com.dragon.android.mobomarket
co.android.vending
com.miui.cloudbackup
com.amazon.venezia
现在我有一个问题:Firebase SDK从何处获取这些值?
Now I have a question: where the Firebase SDK get these values from?
推荐答案
在Android上, PackageManager .当Google Play商店安装该应用程序时,尽管Firebase Analytis会将其替换为空字符串,以节省磁盘和网络带宽,但该软件包仍报告为"com.android.vending"
.侧载的应用程序将报告为manual_install
.
On Android the package of the app that installed the current app is reported by the getInstallerPackageName method provided by the PackageManager. When the app is installed by Google Play Store the package is reported as "com.android.vending"
though Firebase Analytis will replace that with empty string to save disk and network bandwidth. Sideloaded apps will be reported as manual_install
.
在iOS上,唯一可能的商店iTunes报告为空app_store值.在Android上,侧面加载的应用程序报告为manual_install
.
On iOS the only possible store iTunes is reported as emptry app_store value. Sideloaded apps are reported as manual_install
as on Android.
这篇关于"app_store"的值在哪里?在Firebase中来自哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!