China Naming Network - Ziwei Dou Shu - Uniapp gets the application version number and application version name.

Uniapp gets the application version number and application version name.

Uniapp gets the application version number and application version name.

Differences between the uniapp version number and the application version name.

Application version name

Application Version Name: Version information used to display to customers.

Such as: 1.0. 1

+.runtime.version: apk/ipa version name and string type set in the compilation environment.

Application version number

Application version number: used to compare the versions provided by the local app and the background app, and to update the function realization. Semantically fill in your own version number.

Such as: 20111701.

Plus.runtime.versionCode: get the version number of apk/ipa, string type, containing only numbers.

Both need to be increased when upgrading.

View uniapp documentation