New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide available version code #7
Comments
Can you think of a use case where this would be useful? |
One use case is to only force update if the version number is behind on major, or minor version, but not force if only patch version has changed. With the version number the developer can determine if update is required or not. |
True on that, but there's no way to tell if it's a minor or major release based on the version code alone? That would only work if the developer has a specific way of using the code (instead of just incrementing it). |
Does it not report the whole version string like: 1.0.0 - as it does on the Play Store page? |
My mistake, I didn't thoroughly review what it was reporting, it looks like they just report an integer, not sure why. I'll close this since unfortunately they aren't providing the whole version string. |
I reopened it again - if there's interest and someone finds a legit use case, then I'll make sure it's implemented 👍 |
In my current implementation, I check against the backend if the outdated version of the app needs to be updated (a newer version is set as required by the backend). If so, I check if there is an in-app update available. |
1.1.4 has just been uploaded with this feature 👍 |
This is exposed by the AppUpdateManager:
https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateInfo.html#availableVersionCode()
The text was updated successfully, but these errors were encountered: