Skip to content
← All posts

By Specita

Google Play in-app update: flexible vs immediate

How the Google Play in-app update API works: flexible vs immediate flows, device requirements, how to test it, and how to decide which update flow to use.

A rounded ivory paper tile shaped like a phone, with a terracotta clay disc on a paper chute sliding toward it.

The Google Play in-app update API lets your app prompt users to install an update without sending them to the store listing. It has two flows. A flexible update downloads in the background while the person keeps using the app. An immediate update takes over the screen and requires them to update and restart before they can continue. Use immediate for critical problems, and flexible for everything else.

It works on Android 5.0 (API level 21) or higher, on Android phones, tablets, and ChromeOS devices. It doesn't work with apps that use APK expansion (.obb) files.

The details below follow Google's documentation. We did not build a sample app for this article, so check Android's in-app updates guide before you ship code.

Flexible vs immediate

FlexibleImmediate
ExperiencePrompt, then background downloadFull-screen flow
Can the person keep using the app?Yes, while it downloadsNo, until they update and restart
Who installsYour app triggers the install when readyGoogle Play handles it
Best forNew features, ordinary fixesUpdates critical to core functionality

Google's guidance is that flexible suits updates that aren't critical to core functionality, and immediate suits those that are.

How the flow works

Both flows use the Play Core library. In outline:

val manager = AppUpdateManagerFactory.create(context)

manager.appUpdateInfo.addOnSuccessListener { info ->
    val available = info.updateAvailability() ==
        UpdateAvailability.UPDATE_AVAILABLE
    if (available && info.isUpdateTypeAllowed(AppUpdateType.FLEXIBLE)) {
        manager.startUpdateFlowForResult(
            info,
            launcher,
            AppUpdateOptions.newBuilder(AppUpdateType.FLEXIBLE).build()
        )
    }
}

With a flexible update, listen for progress. When the state reaches downloaded, ask the person to restart, and call completeUpdate(). Don't restart without asking, since it interrupts whatever they're doing.

Handle the case where someone returns to the app with an immediate update in progress. Google's guide describes checking for that state in onResume and continuing the flow.

Calls can fail: no Play Store, an account issue, or no update available yet. The app must keep working when they do, so don't let your launch path depend on this call succeeding.

How Google Play decides that an update is available

A key point is that the update has to be available to that user from Google Play. If your release is on a staged rollout and the person isn't in the percentage yet, your check may report no update. So an in-app prompt doesn't get around the rollout.

You can also set an update priority for each release through the Play Developer API, from 0 to 5, and read it in the app to decide how hard to prompt. A typical rule: priority 5 triggers an immediate update, priority 3 triggers a flexible prompt, and everything lower waits. Set the priority when you create the release, since Google's guide says it can't be changed afterward. Check the guide, as it holds the current rules.

Your app can also read how many days an update has been available, which helps you avoid prompting on day one and nag gently after a week.

How to test it

In-app updates only work with an app installed from Google Play, so a debug build from Android Studio won't show one. Google's guide suggests internal app sharing for testing. Install an older build through a shared link, then open the link for a newer build without installing it, and open the older app.

Test these cases before release:

  • The update is declined. For immediate, decide what the app does next.
  • The network drops mid-download.
  • A person leaves the app during a flexible download, and comes back.
  • A person returns during an immediate update.
  • The device has no Play Store, if your app is distributed elsewhere too.

When to use which

Most updates don't deserve a prompt at all, since many users have automatic updates on. Use the API when you have a reason. A prompt shown on every release trains people to dismiss it.

SituationFlow
Ordinary releaseNone, or flexible after a week
New feature you want adoptedFlexible
Bug fix for a common crashFlexible with higher priority
Security problem or data lossImmediate
Old API version shutting downImmediate, after flexible prompts

An immediate update isn't a true force, however. The person can leave the flow, and your code needs to decide what happens next. To require a minimum version, you also need a server-side check. See how to force an app update.

What about iOS?

Apple has no equivalent of this API. On iOS, you compare versions yourself and link to your App Store page. If you build a cross-platform prompt, use your server's minimum version rule on both, and use Google's API as the Android mechanism.

Flutter and React Native have community plugins that wrap this API. Check that the plugin you choose is maintained, and test it the same way.

Measuring the effect

Track how many users are on each version after a prompt ships. Your crash reporting or analytics tool can show this. Compare adoption with an earlier release and watch your crash rate, since a faster rollout also spreads bugs faster. If a release is bad, halting the rollout won't help anyone who already installed it. See post-release monitoring for what to watch.

Specita's Google Play connection shows each track's release state, matched to your Android versions, which gives the team one place to see which version is available. The Google Play setup guide explains it.

Google guidance checked on November 4, 2026.