You shipped a release on Friday. On Saturday morning a user writes in: the
checkout button does nothing on small screens. The fix is one line of Dart.

Getting that line to users is the slow part:

  1. Build a new version.
  2. Submit it to App Store review and Google Play review.
  3. Wait, sometimes hours and sometimes days.
  4. Wait again while users actually install the update. Plenty of them have auto-update turned off.

A week later, a good share of your users are still on the broken build.

This post covers four ways to change a Flutter app that's already
installed, what each one can and can't do, and how to set up the most
flexible one, code push, on iOS and Android.

Option 1: Remote config and feature flags

Ship the code for both behaviours in the app, and pick one with a value you
control from a server (Firebase Remote Config or your own API).

final useNewCheckout = remoteConfig.getBool('use_new_checkout'); return useNewCheckout ? NewCheckoutButton() : LegacyCheckoutButton(); 

Good for: switching off a broken feature, A/B tests, changing copy or
limits.

Limit: you can only choose between code that's already in the app. A
bug nobody predicted can't be fixed this way.

Option 2: Server-driven UI

The server sends a description of the screen (usually JSON) and the app
renders it.

Good for: home screens, promo banners, content that changes every week.

Limit: you end up building and maintaining a small UI framework. Logic,
validation and anything not covered by your schema still needs a store
release.

Option 3: Force update

Check the installed version against a minimum version on launch, and block
the app until the user updates.

if (installedBuild < minimumSupportedBuild) { return const PleaseUpdateScreen(); } 

Good for: breaking API changes and security fixes where old builds
must stop working.

Limit: the fix still waits for store review, and you interrupt every
user to deliver it. Use it rarely.

Option 4: Code push

Code push sends a new version of your Dart code straight to installed
apps. The next time the user opens the app, it runs the fixed code. There's
no store review in between and nothing for the user to install.

Good for: bug fixes, UI fixes, logic changes and small improvements,
in any part of the app.

Limit: it changes Dart only. Native code, plugins with native parts,
assets and permissions still need a store release.

Which one should you use?

Situation Best option
Turn off a feature that's misbehaving Feature flag
Change text, banners or a promo screen weekly Server-driven UI or remote config
Old app versions must stop talking to your API Force update
Fix a bug in Dart code that's already live Code push
Add a native SDK or a new permission Store release

They work well together. Most teams keep a few feature flags and a minimum
version check, and use code push for the "we need this fixed today" cases.

Setting up code push in a Flutter app

I'll use OverPush, a code push service for Flutter
that I build. It works on iOS and Android, and your app only gets one
config file and one dependency line.

1. Install the CLI and log in

curl -fsSL https://overpush.in/install.sh | bash overpush login 

On Windows (Android only):

irm https://overpush.in/install.ps1 | iex 

2. Connect your project

Create an app in the dashboard, then from the
root of your Flutter project:

overpush init flutter pub add overpush 

init asks for the app id and writes a single file:

# overpush.yaml app_id: cp_7Kq9xZ2mWv4TnR8bL3sYd6HfJp1cXa5E 

That's the whole integration. You don't change main.dart or any native
files.

3. Build the store release

overpush release android # builds the .aab for Play Console overpush release ios # builds the IPA (on a Mac) 

Upload these builds to the stores as usual. Patches can only target
releases built this way, so this is the build your users need to have.

4. Fix the bug and publish a patch

Back to our checkout button. Fix the Dart code:

// before SizedBox(width: 400, child: CheckoutButton()) // after SizedBox(width: double.infinity, child: CheckoutButton()) 

Check the patch first without publishing it:

overpush patch android --dry-run 

Then publish it:

overpush patch android overpush patch ios 

The CLI checks that only Dart changed. If you also touched native code or
assets, it stops and tells you that change needs a store release.

5. Check it on a phone

Open the app on a phone that has the release installed. The patch
downloads in the background. Close the app fully and open it again, and
the fixed code runs.

Shipping patches safely

Skipping store review means the safety checks are now your job. These
habits help:

Roll out gradually. Send the patch to a small share of devices first,
watch for errors, then send it to everyone.

Know how to undo it. If a patch causes trouble, pull it from every
device:

overpush patches revoke 7 --reason "crash on the login screen" 

A patch that crashes the app on startup also gets turned off on that phone
by itself, and the app goes back to the code it shipped with.

Keep patches to fixes. App stores review what your app does. Use code
push to fix and improve what was approved, not to ship a different app.
Apple allows downloaded code that doesn't change the app's primary purpose.
Read Google Play's current policy for your type of app.

Patch in CI. Running overpush patch from GitHub Actions or Codemagic
means every patch comes from reviewed code on your main branch, not from
someone's laptop.

Optional: show users an update is coming

By default users see nothing. If you want a small "update ready" message,
listen to the events:

import 'package:overpush/overpush.dart'; OverPush.events.listen((event) { if (event is OverPushPatchReady) { showSnackBar('An update is ready. It applies next time you open the app.'); } }); 

Summary

  • Feature flags switch between code you already shipped.
  • Server-driven UI changes content and layout you planned for.
  • Force update makes old versions stop working, but still waits on review.
  • Code push fixes Dart bugs in live apps the same day.

If you want to try code push, the
getting started guide
takes about 15 minutes, and the package is
overpush on pub.dev.

What do you use today when a bug reaches production? I'd like to hear how
other Flutter teams handle it.