Route by device

One QR code, a different link on iPhone and Android

Print one code on the pack, the poster or the table tent. An iPhone opens your App Store listing, an Android phone opens Google Play, and a scan from anything else lands on your website.

The problem

Two codes side by side ask too much of the scanner

An App Store code next to a Google Play code asks every scanner to work out which one is theirs, doubles the print space, and still leaves a desktop scan with nowhere useful to go. One code that reads the scanning device decides for them.

Worked example

Try it: change the scan, or the rules

Two rules and a fallback. The laptop scan matches neither rule and lands on the website — which is why every dynamic code must have a fallback.

One code for iPhone and Android

An app's printed code: the App Store on an iPhone, Google Play on Android, and the website on anything else.

Rules are checked from the top. The first enabled rule that matches the scan decides where it goes, and a scan no rule matches goes to the fallback. Pick a scan or set your own, and the rule that decides it is highlighted.

  • United Kingdom (GB)

Leave empty to simulate a scan whose country is unknown (a VPN, or an address that can’t be placed).

The region the scan comes from, in the country above — the code a real scan reports alongside its name. Best-effort for real scans. Leave blank to simulate as unknown.

In order of preference, the way a browser sends them — or paste a real Accept-Language header. Leave blank to simulate as unknown.

The instant of the simulated scan.

Used by rules set to "scanner's local time". Leave it blank for a scan from a location we can't place: like a real one, it's read in UTC.

More scan details — in-app browser, OS version, city, location, scan number, returning visitor, referrer

Browsers differ in what they report — see what a real scan from this one tells the edge below.

The version the device really runs. Leave blank for a current one — every phone reports some version.

A real scan reports the continent along with the country, so it's taken from the country unless you pick one.

As a scan reports it — usually the English name (Munich, not München); case and accents don’t matter. Leave blank for unknown.

For distance rules. A real scan is placed near its city's centre, and only roughly. Leave blank to simulate as unknown.

For distance rules. A real scan is placed near its city's centre, and only roughly. Leave blank to simulate as unknown.

Which of the code's counted scans this is — 1 is its first. Only scans that reach a destination count: not bots, and not scans that stop at a password or age prompt or a warning page. A scan limit of 100 serves scans 1 to 100. Real scans are counted approximately: when many people scan at the same moment some can get the same number, so a busy code may serve some past a limit or an "at most" rule. Leave it blank to simulate a scan made while the counter couldn't be read, which no scan-number rule matches.

No enabled rule here reads this, so this choice changes nothing — and a real scan of a code with these rules sets no returning-visitor cookie. Add a returning-visitor rule and scans are remembered from the moment it is published.

Leave blank to simulate this as unknown.

No version entered, so this tests a current iOS 26 — enter one to test another.

What a real scan from this device tells the edge: iOS 26.

The User-Agent this device's browser sends, which the edge reads: Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1

Resolves to https://example.com/app/app-store, via "iPhone → App Store".
  1. iPhone → App StoreMatched

    OS is iOS — simulated value: iOS

    → https://example.com/app/app-store

  2. Android → Google PlayNot reached

    → https://example.com/app/google-play

Every code has a fallback, so no scan ever dead-ends.

Your changes stay in this tab and are gone when you leave. On your own codes, routing rules come with Pro and above, and A/B splits and rotations with Business and above.

Where each scan lands

  • iPhone, SafariRule 1 · iPhone → App StoreApp Store listing
  • Android, inside Instagram's browserRule 2 · Android → Google PlayGoogle Play listing
  • iPad in SafariFallbackWebsite
  • Windows laptop, EdgeFallbackWebsite

Every outcome shown here is checked by an automated test that runs these scans through the same routing code a live scan uses.

Setting it up

  1. 1

    Create a dynamic code with your website as its fallback destination.

  2. 2

    Add a rule for iOS pointing at your App Store listing, and one for Android pointing at Google Play.

  3. 3

    Run an iPhone, an Android and a desktop scan through the simulator, then download the code and print it.

Which plan

Routing rules are included from the Pro plan, at $29 a month.

What to know before you print

  • The device is read from what the browser says about itself. That is dependable for phones, but a phone set to request desktop sites can describe itself as a computer, and then gets the fallback.

  • An iPad in Safari presents itself as a Mac, so it doesn't match an iOS rule here either, and gets your fallback too. Make the fallback work for iPads as well as desktops (both store badges, say), or use an App download code, whose deep link can tell an iPad from a Mac by its touch screen.

  • A scan that opens inside a social app's browser — Instagram, Facebook, TikTok — is still read by its operating system and follows the same rules. Those browsers can refuse to hand over to another app, which is one reason a store listing is a safe destination.

  • An App download code sends each phone straight to its store listing by default, same as this rule set. To try opening the app itself first when it's already installed, add a Universal Link or App Link to that code's rule in the rule builder.

Questions

Can one QR code open different app stores on iPhone and Android?

Yes. The code encodes a short link, and each scan is routed by the phone's operating system: iOS to your App Store listing, Android to Google Play. You print one code.

What happens when someone scans it from a computer or an unrecognised device?

It goes to the fallback destination you set when you created the code — usually your website. Every dynamic code must have one, so no scan ends at an error.

Can it open my app if it's already installed?

Not by default — an App download code sends every phone to its store listing unless you add more. Add a Universal Link or App Link to that code's rule in the rule builder, and a phone with your app installed opens it. A phone without it opens that link as an ordinary web page, not the store listing, so make that page offer the download.

Route your next printed code

Create an account, set up the rules, and check them in the simulator before anything goes to print.

One QR code for iPhone and Android, a different link for each · QRtoMany