Where is the value of the “app_store” in the Firebase come from?

耗尽温柔 提交于 2020-01-15 10:27:11

问题


From the Google Firebase official doc, the user_dim.app_info.app_store is defined as

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

Now I have a question: where the Firebase SDK get these values from?


回答1:


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.

On iOS the only possible store iTunes is reported as emptry app_store value. Sideloaded apps are reported as manual_install as on Android.



来源:https://stackoverflow.com/questions/40327588/where-is-the-value-of-the-app-store-in-the-firebase-come-from

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!