How to change version code in Ionic framework and make sure it gets accepted by Play Store?
Play Store is not allowing to upload the generated apk, with version number 1000.
For ionic 4, there is no android-versionCode field. So you should change the version in widget field (usually line 2) in the config. xml file. In this case, just change the version from 0.0.
In the browser console, you can run ionic. version and it will print to the console what version it is.
In config.xml
<widget android-packageName="com.package.app.android" android-versionCode="1000" id="com.package.app" version="1.0" xmlns="w3.org/ns/widgets"; xmlns:cdv="cordova.apache.org/ns/1.0">
change these lines in config.xml. Build one at each time. Hope this will help
<!-- Android -->
<widget id="io.cordova.hellocordova" version="0.0.1" android-versionCode="13" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
</widget>
<!-- iOS -->
<widget id="io.cordova.hellocordova" version="0.0.1" ios-CFBundleVersion="0.1.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
</widget>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With