I'm trying to implement Android InApp Update, one of my conditions to show the Flexible popup is to check if the user version is two times behind the play store version. The problem is in my build.gradle the version code is generated dynamically and it doesn't reflect the version number, I need to check the version names instead. AppInfoUpdate is not returning the version name, and here is my question:
How to get the playstore version name from AppUpdateInfo, if it's not possible is there an API I can use to retrieve it? Thanks a lot