Setting Android version code in Ionic 2 / Cordova

后端 未结 2 969
情深已故
情深已故 2021-02-07 09:39

I\'m completely stuck with a crazy issue. I\'m not able to publish an update of my app in Google Play store because current version code is 101002.

Now,

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-07 09:57

    You can specify a custom version-code in config.xml. Add the following property to the element (the root element): android-versionCode="101003".

    This is an example of a full tag with more properties that are probably useful:

    
    
    • version is the version displayed in the app stores, can stay the same across different builds
    • android-versionCode this is used by Google-Play to differentiate between your builds, must always be higher than the previous one
    • CFBundleVersion is used by iTunesConnect to differentiate your builds, must always be higher than the previous one
    • id is where you define the bundle identifier of your app, this must always stay the same

提交回复
热议问题