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
Cordova platform version (cordova platform ls): Android 9.1.0 and iOS 6.2.0
Plugin config
Expected Behavior
Actual Behavior
I am getting this error
"java.lang.NumberFormatException: For input string: "Varies with device"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at java.lang.Float.valueOf(Float.java:416)
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.needsUpdate(CDVAppUpdate.java:185)
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.execute(CDVAppUpdate.java:66)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:117)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:139)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:335)
at android.os.Looper.loop(Looper.java:183)
at android.os.HandlerThread.run(HandlerThread.java:67)
"
Context
I am running this function on device ready
function checkForUpdate() {
window.AppUpdate.needsUpdate(function (updateObj) {
if (updateObj.update_available == 1) {
console.log("App Update Success:")
}
}, function (error) {
console.log("App Update ERROR:", error);
});
}
Debug logs
The text was updated successfully, but these errors were encountered:
Unfortunately right now the plugin does not support multiple APKs for Android. I am working on an update to use the In-app Updates API for Android which will fix this issue. I should have the update in place soon and I will post here as soon as the new update is available for you. I appreciate your patience and I will try to get this working for you as soon as I can.
Hello,
I'm sure you have moved on from this open source plugin by now, but I just wanted to put an update in this issue that a new version is available (2.0.0) which should permanently fix this issue. I will leave the issue open for a while in case there are issues or other feedback.
Your Environment
cordova -v
): Cordova 10.0.0cordova platform ls
): Android 9.1.0 and iOS 6.2.0Expected Behavior
Actual Behavior
I am getting this error
"java.lang.NumberFormatException: For input string: "Varies with device"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at java.lang.Float.valueOf(Float.java:416)
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.needsUpdate(CDVAppUpdate.java:185)
at com.kungfukingbetty.cordova.appupdate.CDVAppUpdate.execute(CDVAppUpdate.java:66)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:117)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:139)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:335)
at android.os.Looper.loop(Looper.java:183)
at android.os.HandlerThread.run(HandlerThread.java:67)
"
Context
I am running this function on device ready
function checkForUpdate() {
window.AppUpdate.needsUpdate(function (updateObj) {
if (updateObj.update_available == 1) {
console.log("App Update Success:")
}
}, function (error) {
console.log("App Update ERROR:", error);
});
}
Debug logs
The text was updated successfully, but these errors were encountered: