Android Version Name
Posted: Wed Feb 14, 2018 8:47 am
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi Joe, please try the Buildinfo Cordova plugin.
Best,
Bruce
Joe,
Here's a code snippet of the functions we use - of course wait until device ready has fired ....
function fSetVersionandBundleID() {
Code: Select all
try {
fLocalSet('sBuildNumber', BuildInfo.version);
fLocalSet('sPackageName', BuildInfo.basePackageName);
fLocalSet('sBundleID', BuildInfo.basePackageName);
} catch (e) {
fLocalSet('sBuildNumber', '014');
localStorage.setItem('sPackageName', 'io.appery.project370506');
localStorage.setItem('sBundleID', 'io.appery.project370506');
}
return;
}
Best,
Bruce