androidgoogle-playin-app-update

Android in-app update - new version not detected immediately


I'm trying to use the in-app update (https://developer.android.com/guide/playcore/in-app-updates) to detect and install updates for my application which was published as a private app (from an EMM console).

Even if the app is visible in the Play Store the in-app update mechanism doesn't detect it immediately, but after a few hours. Is this the expected behavior?

May it be related to the fact the app is a private app?

Here's my code to check & perform the update

val appUpdateInfoTask = appUpdateManager.appUpdateInfo
appUpdateInfoTask.addOnSuccessListener { appUpdateInfo ->
    //Checking the update type in IF skipped consciously
    if (appUpdateInfo.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE) {
        Toast.makeText(this, "Update available, a dialog should be shown", Toast.LENGTH_LONG).show()
        appUpdateManager.startUpdateFlowForResult(appUpdateInfo, AppUpdateType.IMMEDIATE, this, APP_UPDATE_REQUEST_CODE)
    } else {
        Toast.makeText(this, "No update available", Toast.LENGTH_LONG).show()
    }
}

Solution

  • I just talked to a google consultant and got a confirmation that it is a normal situation to wait a few hours before the in-app update mechanism detects the new version in the Play Store even if the Play Store mobile app detects the new version immediately.