This repository has been archived by the owner on Oct 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 467
Get version information
Nikolay Demyankov edited this page Aug 30, 2016
·
3 revisions
When needed - you can request version information via JS API:
chcp.getVersionInfo(callback);
function callback(err, data) {
console.log('Current web version: ' + data.currentWebVersion);
console.log('Previous web version: ' + data.previousWebVersion);
console.log('Loaded and ready for installation web version: ' + data.readyToInstallWebVersion);
console.log('Application version name: ' + data.appVersion);
console.log('Application build version: ' + data.buildVersion);
}
where:
-
currentWebVersion
- version of the web content, that is displayed to the user. Basically, value of therelease
property fromchcp.json
file in your localwww
folder. -
previousWebVersion
- previous web content version. This is a version of our backup. Can be empty, if there were no updates installed. -
readyToInstallWebVersion
- version number of the web content, that was loaded by the plugin and ready to be installed. Basically, value of therelease
property fromchcp.json
file on your server. Can be empty, if no update is waiting for installation. -
appVersion
- application's version name. This version is visible to the user on the stores. -
buildVersion
- application's build version number.
- Description
- Supported platforms
- App Store FAQ
- Usage Limitations
- Installation
- Quick start guides
- How plugin works
- config.xml preferences
- Plugin configuration files
- JavaScript module
- Additional utils
- Migrating from previous versions
- Contributors
- Issue creation guide