google-play-core
How can I test In-app updates in Android?
Testing using Internal App Sharing The right way to test in-app update is to use Internal App Sharing (not to be confused with Internal Testing Track). First setup your Internal App Sharing with the help of these instructions. Unlike Internal Testing Track, Internal App Sharing makes the app available immediately. So there is no waiting … Read more
How to work with Android’s in-app update API?
Step 1: Add dependency (build.gradle (app)): dependencies { implementation ‘com.google.android.play:core:1.7.3′ … } Step 2: Check for update availability and start if it’s available private AppUpdateManager mAppUpdateManager; private static final int RC_APP_UPDATE = 11; In onStart() method: mAppUpdateManager = AppUpdateManagerFactory.create(this); mAppUpdateManager.registerListener(installStateUpdatedListener); mAppUpdateManager.getAppUpdateInfo().addOnSuccessListener(appUpdateInfo -> { if (appUpdateInfo.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE && appUpdateInfo.isUpdateTypeAllowed(AppUpdateType.FLEXIBLE /*AppUpdateType.IMMEDIATE*/)){ try { mAppUpdateManager.startUpdateFlowForResult( appUpdateInfo, AppUpdateType.FLEXIBLE … Read more
Update an Android app (without Google Play store visit)
Absolutely. You will need to build a mechanism, though, for your app to call home to the server, find out if there’s a newer version of the app, and if there is, pull it down and install it. Once you’ve determined that you do need to pull down an update, you can do that with … Read more
Play Core In-App Review API not showing the Review Activity
Okay, I had exactly the same problem as described by the OP and as is listed on the issue tracker here: https://issuetracker.google.com/issues/167352813 and has still not been resolved as yet by GoogleDev. Same UI manifestation(s), same log entries (incidentally, the log entries are the same when it works though, complete with the entry that says … Read more