Hi, i have an app already published to the app store, i built it with ionic cli, then i changed to phonegap build, the app works, but when i try to update my old version, throws an error: "App not installed", so i deleted old version, then installed new one and it does install, so i go for the play store and when i get to my published app, it says to update, as if the new version is older, but i have greater versionCode and version, what could be the problem here?

PD: when i build with ionic cli works fine, i can update old one, but i would prefer build with phonegap for time convenience.

Have you recently changed anything on PGB regarding the versionCode? A while ago, when setting the versionCode as widget attribute, the app got another versionCode after being built. E.g.: I set the versionCode on "1" in the config.xml, the result was 18. When setting it to "2", it was 28. This was/is a well-known problem.

I created a test build today and noticed that (when decompiling the .apk) the versionCode is now set correctly. When setting it to "1" in the config.xml, it was also "1" in the AndroidManifest.

Yes, this was my full config.xml I used to test it. I am not using the android-versionCode preference, I just set it as a widget attribute as shown above. I thought that this resulted in the "8" added to every build - I am pretty sure it was like that a few months ago. This could be the reason why some apps cannot be updated in PlayStore: When the config.xml doesn't include a android-versionCode preference, the version code will suddenly be decreased.

I am a bit worried - can I assume that the "8" won't be added in future builds, even if I only set the widget attribute? Or is it just a temporary thing?

The ionic version shows that your versionCode was 101008. In the PGB version, your versionCode is 20000. Try to increase it to at least 101009.Btw: Are you using the preference android-versionCode or have you set it on the widget attribute? (If you aren't sure: Just post the config.xml here )

i noticed that in activity tag, the "android:name" attribute is different, in manifest generated by inonic cli the value is "PACKAGE.NAME.HERE.MainActivity" but in the PGB one the value is "PACKAGE.NAME.HERE.APP-NAME".

Increase your android-versionCode to at least 101009, then it should work.

I still don't understand why the versionCode suddenly doesn't add the "8" at the end... Is is somehow possible to find out why the change was made and if it will work in this way in the future? Somebody must have changed it in PGB :-) And: What is the difference between android-versionCode and versionCode (as widget attribute)?