Guides

How to force users to update a Flutter app

Three ways to require an app update in Flutter on iOS and Android: Google Play’s in-app updates, a version check you build yourself, and an SDK that does it from a dashboard.

By The agent44 team

On this page

Sooner or later a version of your app has to go. An API it depends on is being switched off, a bug is corrupting data, or a payment flow no longer works. The stores will offer the new build, but nothing makes people install it, and a share of your users will stay on the old one for months.

A force update closes that gap: the old version shows a screen that says “update to continue” and sends people to the store. This guide covers the three ways to build one in Flutter, what each costs you, and the mistakes that lock real users out.

The one rule: the old build has to ask

You can’t reach into a version that’s already on someone’s phone. A build can only block itself if it was shipped with code that asks a server “am I still allowed?” each time it opens. So whichever approach you choose, it has to be in the app before the release you later need to retire. Add it now, while nothing is on fire.

Option 1: Google Play’s in-app updates (Android only)

Google Play has an in-app updates API with two flows. The flexible flow downloads the update 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. Flutter apps reach it through a plugin that wraps the Play library.

  • It works only on Android, and only for apps installed from Google Play.
  • Play decides whether an update is available. Your code still decides whether it’s required, so you need your own rule for which versions must update.
  • People can back out of the immediate flow. If the update is truly required, your app has to notice that and show the screen again.
  • There’s nothing like it on iOS. Apple has no API that installs an update from inside your app; you can only open your App Store page.

It’s a good experience on Android, but it’s half a solution for a Flutter app that ships on both stores.

Option 2: build your own version check

The do-it-yourself approach has four parts: somewhere to store the minimum version (your own API, or a remote config service), a call at launch that reads it, a comparison with the running version, and a screen that blocks the app and opens the store.

Every way out but the last opens the app.
The idea, in Dart
final info = await PackageInfo.fromPlatform();
final minimum = await fetchMinimumVersion(); // your API or remote config

if (isOlder(info.version, minimum)) {
  // show a screen with no way back, and a button that opens the store
}

It’s a day or two of work, and it’s yours to maintain. The parts that usually get missed:

  • Comparing versions as text. “1.10.0” sorts before “1.9.0” as a string. Split on the dots and compare the numbers.
  • Devices that can’t install the new build. If the new version raises your minimum iOS version or Android API level, 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.
  • No way to reach you. Someone stuck on the update screen can’t open your in-app support, because the screen is in the way.
  • Failing closed. If the check fails because the phone is offline, let people in. Blocking the app on a network error turns a small problem into an outage.
  • The wrong store page. Each platform needs its own link, and on iOS the link needs your App Store ID, not your bundle ID.
  • Timing. A new version can take a while to reach everyone, especially with a phased release. Don’t require a version the store isn’t offering to all your users yet.

Option 3: let an SDK do it

agent44 is a support tool for mobile apps, and force updates are part of it. The Flutter SDK asks agent44 which messages to show each time the app opens, and you set the rules in a dashboard. There’s no config key to define and no screen to build.

Terminal
flutter pub add agent44
main.dart
import 'package:agent44/agent44.dart';
import 'package:flutter/material.dart';

final navigatorKey = GlobalKey<NavigatorState>();

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await Agent44.configure(
    publicKeyIos: 'a44_pub_YOUR_IOS_KEY',
    publicKeyAndroid: 'a44_pub_YOUR_ANDROID_KEY',
    navigatorKey: navigatorKey,
  );

  runApp(MaterialApp(
    navigatorKey: navigatorKey, // the same key as above
    home: const HomeScreen(),
  ));
}

The navigatorKey is what lets the SDK put the update screen over your app. Give your MaterialApp (or your router) the same key, or the screen quietly won’t appear.

Then, in agent44, open Engagement, create a Force update and set three things:

  1. The latest version. Every build older than it sees the screen. Builds on that version or newer never do.
  2. The minimum system: the oldest iOS version and Android API level the new build installs on. With App Store Connect and Google Play connected, agent44 suggests both. Devices below it are left alone.
  3. Your message. The title and text are yours, with your app’s name filled in.
The Flutter SDK’s force update screen: the app’s name, the message “Time to update”, an Update now button and a Contact support link.
The screen the Flutter SDK draws, with demo data.

Set it live and older versions show the screen at their next launch. A few details are handled for you:

  • Update now opens your App Store or Google Play page. agent44 won’t let a force update go live until it has a store link for each app it reaches.
  • Contact support, under the button, opens your chat over the update screen, so someone who can’t update can still reach you.
  • If the check can’t reach agent44, nothing is shown and the app opens as usual. It tries again when the app comes back to the foreground.
  • It’s the same on iOS and Android, from one Dart package.

Not every release needs a hard stop

A force update is a blunt tool. For most releases, a prompt people can skip is kinder and nearly as effective. agent44 has both: a recommended update is a sheet with a Not now button, and you choose whether it shows once, at every launch, or until they tap Update. Keep the hard stop for builds that no longer work.

If you’d rather decide when the check runs, for example after your onboarding, turn the automatic one off and call it yourself:

main.dart
await Agent44.configure(
  publicKeyIos: '…',
  publicKeyAndroid: '…',
  navigatorKey: navigatorKey,
  showInAppMessages: false,
);

// later:
await Agent44.checkInAppMessages();

Which one to choose

Play in-app updatesYour own checkagent44
iOSNoYes, you build itYes
AndroidYes, Google Play installs onlyYes, you build itYes
Where the rule livesYour codeYour API or a remote config serviceA dashboard
The blocking screenGoogle Play’sYours to buildDrawn by the SDK
Skips devices that can’t updatePlay only offers installable updatesYours to buildYes, with a minimum system
A way to contact supportNoYours to buildYes
  • Android only, and happy to write the rule yourself? Play’s in-app updates give the smoothest install.
  • Already run your own backend and want no new dependency? Build the check, and use the list above as your test plan.
  • Want it on both platforms this week, with support and release notes in the same place? See force updates in agent44 and the Flutter SDK.

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.