You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the file app-version.js is trying to parse the latter value as an integer value:
_this.build = parseInt(info.build, 10);
Which is causing some weird return values.
Not sure what the proper fix is here, since Android's VersionCode is an integer. Maybe splitting this API into two, an integer for Android and a string for iOS?
The text was updated successfully, but these errors were encountered:
Just added a line locally to app_version.js, just after the _this.build... line:
_this.buildString = info.build;
This adds a new API to pass back the CFBundleVersion without converting it, which seems to address values like 1.0.0b3 in that field. I tested it on both Android and iOS without issue.
I've been playing around with cordova-plugin-app-version for a bit, and noticed some strange behavior on iOS.
iOS uses two string values to indicate the version:
It looks like the file
app-version.js
is trying to parse the latter value as an integer value:Which is causing some weird return values.
Not sure what the proper fix is here, since Android's VersionCode is an integer. Maybe splitting this API into two, an integer for Android and a string for iOS?
The text was updated successfully, but these errors were encountered: