This question is locked. New answers and comments are not allowed.
After the upgrade, the AppVersion Plugin (0.1.7; installed from verified plugin marketplace) started throwing the following exception:
cordova.getAppVersion.getVersionNumber is not a function
My code:
if
(cordova.getAppVersion) {
try
{
cordova.getAppVersion.getVersionNumber(
function
(v) {
if
(!v) {
version = defaultValue;
$log.error(
'No app version returned.'
);
}
else
{
version = v;
}
});
}
catch
(e) {
version = defaultValue;
$log.error(
'Error retreiving version.'
, e.message);
}
}
else
{
version = defaultValue;
$log.warn(
'No app version plugin.'
);
}
(For clarity, referring to this plugin)
https://github.com/Telerik-Verified-Plugins/AppVersion
Appears to be an issue in the simulator (and pretty sure on iOS - still testing).
Can anyone else confirm?