简体   繁体   中英

How to release android update version of app for regular and pre-installed app

Recently I released updated version of my app, that works good. My first version is also a pre-installed app, during update version I released updated version but now my problem is on pre-installed app having traking id for Google Analytics when I released new version the pre-installed version got override. Is there a way to release update version for pre-installed app and I need to know how to get back the trackID.

Thanks in advance

Let's say your pre-release app has versionCode=1 . The first version of deployed on Google Play app was also 1 . But as you've said, you already have 2 updates on it and google play forced you to increment version number, let's say to 3.

In conclusion, if user has pre installed app - his version code will be 1. If he updated from market - most probably he will have latest version number -3. Or at least two.

The point is that you can be pretty sure that at that moment of time, when you already published two updates, users, who have version=1 are users with preisntalled app, while users with version>1 are users with app from market.

Considering this, you can use the app version number from GA to differentiate these users.

Does that make sense?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM