ENGINEERING NOTE / 3 MIN READ

Detecting a companion app and forcing upgrades in Flutter

Checking whether another app is installed, or whether this one is too old, sounds simple. These are the platform details that make it fail.

By Muhammad Usama Ijaz · 2 Nov 2026 · Updated 21 Nov 2026

In this note
All engineering notes

The short answer

Checking for a companion app and forcing an upgrade both depend on platform rules that Flutter does not hide. Declare the other app by package on Android and by URL scheme on iOS, test a release build, and control the minimum version from your backend, so you can change it without shipping a new app.

Teams that ship more than one app often need to know whether a companion app from the same company is installed, and to block or nudge users who run a version that is too old. Both are small features that depend on platform behavior Flutter does not hide for you.

Android package visibility

From Android 11, an app cannot see other installed apps unless it declares what it needs. You either list specific packages in a queries entry in the manifest, or request the broad all-packages permission, which app stores restrict and review. Prefer declaring the specific package you need.

Release builds strip things

Code that works in a debug build can fail in release when the code shrinker removes classes your native code reaches by name. Add keep rules for the classes used across the platform channel, and always test a release build, not only debug.

Plugin registration

A plugin that lives in your own repository, rather than coming from the package registry, may not be registered automatically in every setup. Check that it is registered on both platforms, and make the failure loud. A plugin that silently returns “not installed” because it never loaded is worse than one that crashes in testing.

iOS URL schemes

On iOS, asking whether another app can be opened requires its URL scheme to be listed in the app’s queried-schemes entry. Without it the answer is always no, even when the app is installed. Keep that list short and documented so the next developer knows why each entry exists.

Designing the forced upgrade

Set the policy in one place: a minimum supported version delivered from your backend, a gentle nudge below a recommended version, and a hard block below the minimum. Show a clear screen with a link to the store. Decide what the check does when the network is poor: allowing the user through is usually kinder, unless safety requires otherwise.

Two numbers from your backend, a minimum and a recommended version, give three behaviors.

Questions to ask before release

Is the companion app declared by package on Android and by scheme on iOS?

Both are required. Without the declaration the answer is always “not installed”, even when it is.

Have you tested the check in a release build on both platforms?

Debug builds hide the problem. The code shrinker can remove classes your native code needs, so test the build you will ship.

Does a plugin that fails to load fail visibly?

Make it loud. A plugin that quietly returns “not installed” looks like a working feature until a user reports it.

Is the minimum version controlled from the backend?

Yes, so you can raise it the day you need to, without waiting for a release.

What does the app do when the version check cannot reach the network?

Decide it in advance. Blocking everyone on a failed check is usually worse than letting them in and checking again later.

START HERE

Tell us what you are building.

A rough idea is enough. In 30 minutes you will know whether we can help, how, and roughly what it takes.