问题
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