QRAnalytica

Can a QR Code Open an App Directly?

Yes, a QR code can open an app if the app owner set up universal links or Android App Links for an https URL. Otherwise it opens the browser.

Nookesh Karri · 7 min read
Dark cover card with the title 'Can a QR Code Open an App Directly?' in white and a lime accent bar

Yes, a QR code can open an app directly, but only when the app owner has set it up. The QR code itself just holds an https link. If the app supports universal links on iPhone or Android App Links, scanning that link opens the app; if not, or if the app isn’t installed, it opens the browser.

Most “app QR code” guides skip this: the QR tool doesn’t do the deep linking. The app does.

How a QR code opens an app on iPhone and Android

A QR code opens an app when the phone recognises the scanned URL as one that an installed app has claimed. The camera reads the code, gets a web address, and asks the operating system who should handle it.

On iPhone, Apple’s QR code talk for developers explains that with universal links set up between the website and the app, a scanned URL to that website can take the user straight into the app. If the app isn’t installed, the same URL loads in Safari.

On Android, plain deep links can trigger a “which app?” chooser. Verified Android App Links skip the chooser and open the matching screen in the app. App Links work on Android 6 and later, on devices with Google services.

What the app owner has to set up

Universal links and App Links both need a file on the website that proves the app and the domain belong together. Without that file, the phone treats the scan as an ordinary web link.

PlatformFileWhere it livesNote
iPhoneapple-app-site-association/.well-known/ on your domainServed over https, valid certificate, no redirects
Androidassetlinks.json/.well-known/assetlinks.jsonApp needs android:autoVerify="true" in an intent filter

Apple’s associated domains guide adds that each subdomain needs its own file. The app also needs the Associated Domains entitlement. Android checks the hosts listed in the app when it’s installed, on Android 6.0 (API level 23) or higher.

Both files are cached, so changes don’t show up instantly. Apple’s CDN fetches the file within 24 hours, and devices check approximately once per week after install. On Android 15 and higher, changes can take up to seven days to reach every device.

A real example: a gym booking app

Say a gym has its own booking app and wants a poster QR code that opens the class timetable. The developer adds the two files to gym.example, ships an app update, and the marketing team prints a code for https://gym.example/classes.

A member with the app scans it and lands on the timetable screen. A walk-in visitor without the app gets the same page in their browser. That page should show the timetable plus an install button, so the scan still works for them.

If the poster pointed at gymapp://classes instead, the walk-in would get nothing.

Custom URL schemes like myapp:// can open an app, but Apple says universal links are strongly recommended instead. A scheme doesn’t stop other apps from registering the same name, and if several do, the app iOS picks is undefined.

Apple also warns that URL schemes are a possible attack route into an app, so every parameter must be checked. For a code printed on thousands of flyers, an https link is safer, and anyone can open it.

When it opens the browser instead of the app

A QR code opens the browser instead of the app for one of four reasons:

  • The app isn’t installed. This is the expected fallback, not a bug.
  • Verification failed. The file is missing, sits behind a redirect, or lists the wrong signing key.
  • Caching. You fixed the file, but the phone hasn’t re-checked yet.
  • The domain can’t be verified. On Android 12 and later, users then have to link the domain to the app by hand in settings.

On Android 12 and up, a developer can trigger verification manually on a test phone instead of waiting.

Linking to an app you don’t own

You can still make a QR code that opens a popular app like WhatsApp, Instagram or Spotify, because those companies already support links into their apps. Use their normal https link, such as a wa.me chat link, and the phone does the rest.

What you can’t do is make an arbitrary app open to a specific screen that its developer never exposed. No QR tool can add that from the outside.

You are…What to put in the QR code
The app ownerAn https link on your domain, with universal links and App Links set up
Marketing someone else’s appThat company’s official https link to the profile, chat or page
Promoting an app downloadOne link that sends each phone to its own store

For the third case, a single code for the App Store and Google Play is usually enough.

Where a dynamic QR code fits

A dynamic QR code adds a redirect between the printed code and the final link, so you can change the destination and count scans. QRAnalytica’s device routing sends iPhones to the App Store, Android phones to Google Play and everyone else to a desktop page. Scans are counted by device.

The redirect is also a dependency: every scan passes through the QR service’s servers. If you’re unsure which kind you need, the static vs dynamic comparison covers the trade-off.

My take and the limitation

My take: print the https link to your own domain, never a custom scheme, and treat “opens in the app” as a bonus on top of a web page that already works.

The limitation: you don’t control what happens after the scan. The app owner’s setup, caching and the phone’s settings decide. Test on a real iPhone and a real Android phone before printing, and if one of them misbehaves, the iPhone vs Android scan guide lists the usual causes.

FAQ

Can any QR code generator make a code that opens my app?

Only if your app already handles the link. The QR code just stores a URL. The app has to be set up for universal links on iPhone and App Links on Android, or it has to register a custom scheme.

What happens if the person scanning doesn’t have the app?

With a universal link or an App Link, the phone opens the same https address in the browser. Put an install button or a smart app banner on that page so the visit isn’t a dead end.

Should I use a custom URL scheme like myapp:// in a QR code?

Avoid it for printed codes. Apple says universal links are strongly recommended over custom schemes, other apps can claim the same scheme, and a scheme link does nothing useful on a phone without the app.

Can a QR code open someone else’s app, like Instagram or WhatsApp?

Yes, when that company supports links into its app. Use the normal https link to the profile or chat, and the phone hands it to the app if it is installed.

Why does my QR code open the browser instead of the app?

Usually the app’s link verification failed or hasn’t refreshed yet. Check the apple-app-site-association and assetlinks.json files, then reinstall the app on a test phone and scan again.

Sources

Track your dynamic campaigns. 7-day trial, no credit card.
Generate Dynamic QR