How to change the version of the application in the ionic structure?

How to change the version code in the Ionic framework and make sure that it is accepted in the Play Store?

The Play Store does not allow you to download the generated apk with version number 1000.

+7
source share
3 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"> 
+16
source

change these lines in config.xml. Build one at a time. Hope this helps

 <!-- 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> 
+6
source

For ionic 4, you must change the "version" field in the "widget" field (usually line 2) in the config.xml file.

For instance:

 <widget id="myapp.mycompany.com" version="0.0.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> 

In this case, just change the version from 0.0.3 to 0.0.4 or to any other number.

0
source

Source: https://habr.com/ru/post/1265371/


All Articles