Closed EnzChe closed 7 years ago
Ok I got it. I am actually using com.toptoche.searchablespinnerlibrary.
And this library got a BuildConfig class containing VERSION_NAME = "1.3.1"; My app was installed at 0.0.1 and for testing I tested with 0.0.2 & 0.0.3.
Seems like AppUpdater was taking the current version of app installed is "1.3.1" and not "0.0.1". Because when I upload the new version on server over than 1.3.1+, then the listener is correctly working.
I think your issue is related with this, as explained in the WIKI.
If
latestVersionCode
is included in the JSON,latestVersion
will only be used to display the latest version in the dialog and theversionCode
will be used to compare the installed and latest update.
Do increasing the versionCode
solve your issue?
Details
2.6.1
5.1
Emulator API 24
Actual Code
Expected Result
It's nearly working on Logs.
Actual Result
The application never detect new versions, when I call 'update.getLatestVersion()' the latest version is 0.0.3 (the real latest version on my server), and when I go in device, App properties the App version is 0.0.1. So why the 'isUpdateAvailable' is false ?