Guides

How to force an app update on iOS, Android and React Native

What each platform gives you for requiring an app update: Google Play’s in-app updates on Android, a version check of your own on iOS, and what changes in React Native.

By The agent44 team

On this page

When a version of your app has to be retired, the stores will offer the new one, but nothing makes people install it. A force update is the screen that does: “update to continue”, with a button to the store. Each platform gives you different tools for it. This guide goes through them. If you build with Flutter, there’s a guide for that too.

The rule on every platform

A build can only block itself if it shipped with code that asks a server whether it’s still allowed. You can’t add that to a version that’s already on phones. So the check has to go in before the release you later need to retire.

Android: Google Play’s in-app updates

Google Play has an in-app updates API with two flows. The flexible flow downloads in the background while people keep using the app. The immediate flow shows a full-screen update page and restarts the app when it’s done.

The idea, in Kotlin
val manager = AppUpdateManagerFactory.create(context)

manager.appUpdateInfo.addOnSuccessListener { info ->
    if (info.updateAvailability() == UpdateAvailability.UPDATE_AVAILABLE &&
        info.isUpdateTypeAllowed(AppUpdateType.IMMEDIATE)
    ) {
        manager.startUpdateFlowForResult(
            info,
            launcher,
            AppUpdateOptions.newBuilder(AppUpdateType.IMMEDIATE).build(),
        )
    }
}
  • It works only for apps installed from Google Play.
  • Play tells you an update is available. Whether it’s required is still your rule, so you need somewhere to keep the oldest version you allow.
  • People can back out of the immediate flow. If the update is required, check again when the app resumes.

iOS: a version check of your own

Apple has no API that installs an update from inside your app. All an app can do is decide it’s too old and open its App Store page. That means building the check yourself: somewhere to store the minimum version, a call at launch, a comparison, and a screen with no way back.

The idea, in Swift
let current = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "0"
let minimum = try await fetchMinimumVersion() // your API or a remote config service

if current.compare(minimum, options: .numeric) == .orderedAscending {
    // show a full-screen view with one button that opens your App Store page
}

Compare versions as numbers, not text: as strings, “1.10.0” sorts before “1.9.0”. The .numeric option above does that in Swift.

React Native: the same two, plus a catch

A React Native app has both problems at once, and one more: JavaScript can’t read the app’s version without a native module. In Expo, expo-application gives you the version and build; in bare React Native, a device info library does. From there the check is the one above, written once in TypeScript.

Over-the-air updates don’t replace a force update. They can change your JavaScript, but not native code, and a build that’s too old to receive them is exactly the build you need to retire.

What a home-made check usually misses

  • Devices that can’t install the new build. If the new version needs a newer iOS or Android, people on older systems see a screen they can never get past. The check needs the device’s OS as well as the app’s version.
  • A way to reach you. Someone stuck on the update screen can’t open support, because the screen is in the way.
  • Failing open. If the check can’t reach your server, let people in.
  • The right store page for each platform, and on iOS your App Store ID rather than your bundle ID.
  • Phased releases. Don’t require a version the store isn’t offering to everyone yet.

Doing it from a dashboard instead

agent44’s SDKs for iOS, Android and React Native include the check and the screen. Once the SDK is started, there’s no update code to write: you create a force update in agent44 under Engagement, and older versions show it at their next launch.

Swift
Agent44.configure(publicKey: "a44_pub_YOUR_IOS_KEY")
Kotlin, in your Application
Agent44.configure(this, publicKey = "a44_pub_YOUR_ANDROID_KEY")

In React Native, the same check runs from the provider you wrap your app in, using the version you pass as appInfo. The React Native guide has the full setup.

  • Every build older than the version you name sees the screen. It can’t be closed.
  • A minimum system (an iOS version and an Android API level) leaves devices alone that can’t install the new build. With App Store Connect and Google Play connected, agent44 suggests both.
  • Update now opens the store page. A force update can’t go live until agent44 has a store link for each app it reaches.
  • Contact support, under the button, opens the chat over the update screen.
  • If the check can’t reach agent44, nothing is shown and the app opens as usual.

For releases that don’t need a hard stop, a recommended update is a sheet people can skip. See force updates in agent44 for both.

Store rules in this guide are from Apple’s and Google’s public documentation, checked in November 2026. If something has changed, tell us and we’ll fix it.

More apps.
Not more support staff.

Start free on your first app, and add brands to the same plan as your studio grows.