Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change app version in ionic framework?

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.

like image 926
Ali Zaheer Avatar asked Mar 13 '17 07:03

Ali Zaheer


People also ask

How do I change the app version in Ionic?

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.

How do I know which version of Project is Ionic?

In the browser console, you can run ionic. version and it will print to the console what version it is.


2 Answers

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">
like image 87
Sabari Avatar answered Sep 28 '22 21:09

Sabari


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>
like image 26
Dheeraj Avatar answered Sep 28 '22 20:09

Dheeraj