By Specita
Force update app: how to require a new version safely
How to force an app update on iOS and Android: a minimum version check on launch, Google's immediate updates, safe rollout, and how not to lock users out.

To force an app update, your app checks a minimum supported version when it starts, usually from your server, and blocks use if it's too old, with a button that opens the store. Apple offers no built-in way to do this. On Android, Google's in-app update API can run the update flow, but a minimum version check is still what enforces it. You have to ship this check before you need it, because older versions can't obey a rule they don't know about.
Forcing an update should be rare. Keep it for security problems, data damage, or a backend that can no longer support old clients.
How to force an app update with a version check
The basic design has three parts.
- Your server, or a remote config service, publishes a minimum version per platform.
- The app compares its own version to that value when it launches.
- If the app is older, it shows a blocking screen with a button to the store.
{
"ios": { "minimum": "2.4.0", "latest": "2.6.1" },
"android": { "minimumVersionCode": 2040000, "latest": "2.6.1" },
"message": "This version is no longer supported. Please update to continue."
}
A simple check in Kotlin:
if (BuildConfig.VERSION_CODE < config.android.minimumVersionCode) {
showUpdateRequiredScreen(storeUrl)
}
Compare version strings as numbers, part by part, or use an integer. A plain string comparison says that "2.10.0" is lower than "2.9.0".
Separate "required" from "recommended". A second value lets you nudge people without blocking them, and that covers most situations.
Don't lock people out by accident
A bad version check can take down your whole app, so handle the failure cases carefully.
- The check fails. If the server can't be reached, let the app continue. Failing closed means an outage on your config endpoint locks everybody out.
- The update isn't available yet. If you raise the minimum while the fix is on a phased release or a staged rollout, or still in review, you can block people who can't get the new version. Only raise the minimum once the required version is available to everyone.
- The device can't update. A phone on an older OS may not be able to install the new version. Those users hit a dead end. Decide what they see, and check how many there are first.
- Offline use. If your app works offline, think about whether the check should block it.
Raise the minimum gradually where you can. Check what share of active users you'd block, using your analytics or release health data, before you change the number. A hypothetical example: 2.4.0 has a serious bug and 2.6.1 is available everywhere. Your data shows that 4% of users are on affected versions. Raising the minimum affects those users only, and you can tell support to expect some messages.
Android: Google's immediate update flow
Google's in-app update API has an immediate flow that takes over the screen and handles the install. It's a much smoother experience than sending people to the store. But the person can still leave the flow, so combine it: your version check decides that an update is required, and the API does the work. If the API can't start, fall back to a link to your store listing.
https://play.google.com/store/apps/details?id=com.acme.app
Remember that the flow only offers what Google Play has available to that user. See Android's guide for details.
iOS: send people to the App Store
iOS has no such API. Your blocking screen links to your App Store page:
https://apps.apple.com/app/id1234567890
Use Apple's numeric app ID. Some apps read the latest version from Apple's iTunes Search API, to avoid running a server. That gives you the latest version number, but no way to say which versions you still support, so keep a config value if you can.
Apple's reviewers will see your blocking screen if a test build triggers it, so make sure that the build under review passes your check. A version in review is, by definition, higher than what's live, so a correctly written check won't block it. Test this before you submit, since your logic may compare against "latest" in ways that block a pre-release version.
Write the screen for the person reading it
A blocking screen interrupts someone who opened your app to do something. Tell them plainly:
- Why they need to update, if you can say.
- That it takes a moment, and what the button does.
- How to get help if the update doesn't appear.
"Update required. This version has a problem that could affect your saved data. Update to keep using the app." works better than a generic error. Keep it translated in your app, or send it from the server so that you can change it.
Keep any critical path available if you can. For example, a banking app may still want to show a support phone number on this screen.
Alternatives to a full block
| Option | Use when |
|---|---|
| Soft prompt with "Later" | New features, routine updates |
| Flexible in-app update | Android, non-critical |
| Disable one feature on old versions | Only that feature is affected |
| Server-side fix or flag | The fix doesn't need an app update |
| Banner in the app | Advance notice for an upcoming minimum |
Turning off one feature for old versions is often the best choice. It protects you without stopping someone's whole session.
Give advance notice for planned cutoffs
If you're retiring an old API, this is a planned event. Announce it in the app for a few weeks with a soft prompt, then move to a hard block. Track who's left on the old version. Agencies should share the numbers with clients before any block goes live, because the client will take the support calls.
Test the whole path
Test on real devices, using a store build where possible. Install the old version, change the config, and go through the flow. Then test with the config endpoint down. Add it to your app release checklist.
Specita's Google Play connection shows each track's release state for a product, which helps when you decide whether a version is available enough to require. Start with getting started. For the urgent version of this situation, see our hotfix process.
Android guidance checked on November 4, 2026.