Deep link opens the Play Store instead of the app? Fixes for Android
The app is installed, but the link lands on the Play Store with an Open button. Why Android hands some links to the browser, two adb commands that show which case you have, and the fix for each.
When an Android link opens the Play Store even though the app is installed, Android didn't hand the link to your app, so a browser loaded it and the link's "app not installed" fallback ran. The usual reasons are an App Link that isn't verified for that exact domain, a tap inside an app with its own browser (Instagram, Facebook, LinkedIn), or an installed build whose package name or signing key doesn't match what the link expects. Two adb commands tell you which.
This post goes through the causes in the order we see them, with a check and a fix for each. Our Android App Links checklist covers verification itself in depth: assetlinks.json, fingerprints and re-verifying. Here we deal with the symptom: why the user ends up on a store page with an Open button instead of inside the app.
Why a link goes to the Play Store at all
It helps to know who decides what. When someone taps an https:// link on Android:
- Android decides first, before any network request. If an installed app has a verified App Link for that host and path, the app opens and no web server ever sees the tap.
- If no app claims it, a browser loads the URL. Now your link server or web page gets a request. A web server can't tell whether the app is installed, so it does what the link says for people without the app. For most deep links that's the Play Store, often with a referrer so the link survives the install.
So "it opens the Play Store" nearly always means step 1 didn't happen. The Play Store redirect is working as designed. It just ran for someone who already has the app.
CodeOnAir AppLinks behaves the same way, and you can see it: add ?d=1 to any of your links to open the link debugger. For Android it lists android_app_installed: App Link opens the app directly (the OS never calls this server) and the Play Store URL used otherwise, plus warnings such as Android: set android_package and android_sha256 (Play App Signing key) to serve assetlinks.json.
Step 1: Reproduce it with adb
Run both commands with the exact link that fails:
# 1. Routing only: forces your package, so any matching intent filter opens it
adb shell am start -W -a android.intent.action.VIEW \
-c android.intent.category.BROWSABLE \
-p com.example.shop \
-d "https://links.example.com/p/42"
# 2. A real tap: no package, so Android picks the handler itself
adb shell am start -W -a android.intent.action.VIEW \
-c android.intent.category.BROWSABLE \
-d "https://links.example.com/p/42"
- Both open the app: the app claims the link. The problem is where it's tapped: causes 3, 5 and 6.
- The first opens the app, the second opens Chrome: the intent filter matches but the domain isn't verified, or link handling is off. Causes 1 and 2.
- Neither opens the app: the intent filter doesn't match this host or path, or you installed a build with another package name. Causes 1 and 4.
Our guide to testing deep links with adb and simctl has more commands, including the "unable to resolve Intent" error.
Cause 1: The App Link isn't verified for that host
This is the most common cause by far. Check what Android decided, per host:
adb shell pm get-app-links com.example.shop
Any host that isn't verified doesn't open the app on its own. With this symptom, look in particular for:
- The link domain is missing from the intent filter. The app verifies
example.com, but your links are onlinks.example.comoryourapp.codeonair.com. Every host needs its own<data android:host>and its ownassetlinks.json. - A domain added after the store build. You set up a custom link domain last week, but the version on the phone was built before it. The manifest is part of the binary, so the new host needs a store release.
wwwversus the bare domain. The link usesexample.com, which redirects towww.example.com. Android won't follow a redirect when it fetchesassetlinks.json, so the bare domain fails even thoughwwwpasses.- The fingerprint is for a different signing key. Apps installed from Google Play are signed with the Play App Signing key, not the upload key on your laptop.
If you need to write or host the file, the assetlinks.json and apple-app-site-association setup guide has the format and the generator builds it. Then check the live domain with the Universal Link and App Link validator. It fetches the file the way Google does and shows Google's Digital Asset Links answer.
Cause 2: Link handling is turned off for the app
On Android 12 and later, users can turn off Open supported links in the app's settings (Settings → Apps → your app → Open by default). A user may have turned it off without knowing. Verified or not, the link then goes to the browser.
Check:
adb shell pm get-app-links --user cur com.example.shop
Look under User 0: for Verification link handling allowed: true. false means the user turned it off.
Fix: turn it back on in Settings. For testing, adb shell pm set-app-links-allowed --user cur --package com.example.shop true does the same. In the app, you can send users to that screen with an intent for Settings.ACTION_APP_OPEN_BY_DEFAULT_SETTINGS and package:com.example.shop. Only do that with a clear explanation, after a link has failed.
Cause 3: The link was tapped inside an in-app browser
Instagram, Facebook, LinkedIn, TikTok, Snapchat and the Google app often open links in their own browser (a WebView) instead of handing them to Android. The WebView loads your link like any browser, the link server sees a request, and the "not installed" route sends the user to the Play Store. The app is installed and verified, and it still doesn't open.
Check: the adb test from step 1 opens the app, and the same link tapped in Notes, Messages or Gmail opens the app, but in Instagram it doesn't. Our free deep link tester shows how a link behaves in 12 apps and browsers and gives you a test page for your own phone.
Fix: you can't change how Instagram opens links. What works is a page with an Open in app button. On Android, the button uses an intent:// URL, which Chrome-based WebViews hand to Android when the user taps it:
intent://links.example.com/p/42#Intent;scheme=https;package=com.example.shop;S.browser_fallback_url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.example.shop;end
If the package is installed, the app opens. If not, the browser goes to S.browser_fallback_url. A custom scheme (myapp://p/42) also works for the button, but a WebView may refuse it with no fallback.
CodeOnAir does this for you. When the link is opened in a known in-app browser (Instagram, Facebook, TikTok, LINE, Snapchat, X, LinkedIn, the Google app, or a generic Android WebView), people get a page with Open in app and Get the app buttons instead of a straight Play Store redirect. With a URI scheme set on the app, the button uses an intent:// URL with that scheme. Without one, it opens the link itself through the App Link. More detail is in why links open in the Instagram browser.
Cause 4: The installed build isn't the one the link expects
The app on the test phone isn't always the app the link is set up for:
- A debug or staging build with another package name.
applicationIdSuffix ".debug"turnscom.example.shopintocom.example.shop.debug.assetlinks.jsonlistscom.example.shop, so the debug build is never verified. Anintent://link withpackage=com.example.shopsees no such app and goes to the fallback, which is the Play Store. - A sideloaded release signed with your upload key. If
assetlinks.jsonlists only the Play App Signing fingerprint, an APK you built and installed yourself fails verification. - Two variants installed at once. Only one app can be associated with a domain on a device. With the release and a staging build both installed, the link may go to the one you're not looking at, or show a chooser.
Check:
adb shell pm list packages | grep example
./gradlew signingReport
Fix: test with the variant the link is for. List every fingerprint you need in sha256_cert_fingerprints, which takes an array: debug, upload and Play App Signing. Or give staging builds their own link domain and app. In CodeOnAir that means a separate app for staging, with its own package name and fingerprints.
Cause 5: The link was opened in a way that never reaches Android
Some ways of opening a URL never give Android the chance to hand it to an app:
- Typed or pasted into the address bar. Chrome loads it as a web page. That's not a bug. Test by tapping a link instead.
- A page that redirects to the store by itself. A landing page that runs
window.location = "https://play.google.com/..."on load, or a "smart" banner that goes straight to the store, skips the app for everyone. Send people to the deep link first, and only fall back to the store from there. - Email click tracking. Many email tools rewrite links to their own tracking domain (
click.mailer.example.net/...), which then redirects to your link. Your app doesn't claim the tracking domain, so the tap opens a browser first. After the redirect some browsers hand the final URL to the app and some don't, and in-app WebViews usually don't. Turn off click tracking for app links, or use your email provider's option for a tracking domain you control.
Cause 6: The link points straight at the Play Store
A Play Store URL (https://play.google.com/store/apps/details?id=... or market://details?id=...) always opens the Play Store. If the app is installed, the page shows Open, and tapping it starts the app on its home screen. Whatever the link was for is lost. This is common with "app download" QR codes and with buttons in old marketing emails.
Fix: use an https:// link that your app claims, with the Play Store as its fallback. Our post on QR codes that open the app or the right store walks through it for printed codes.
What CodeOnAir does in each case
| Situation on Android | What happens |
|---|---|
| App installed, App Link verified | Android opens the app. The link server never sees the tap |
| App not installed | Play Store, with the click in the install referrer, so the link survives the install |
| Tapped in Instagram, Facebook and other in-app browsers | A page with Open in app and Get the app buttons |
| Link set to "open in browser" on Android | The web page, never the app or the store |
| Desktop | The web fallback, or a page with a QR code |
The assetlinks.json for your link domain is generated from the package name and SHA-256 fingerprints you enter in the app's AppLinks setup in the dashboard. The file isn't served until both are set, which is the first thing to check when links go to the Play Store.
FAQ
Why does my deep link open the Play Store when the app is installed?
Because Android didn't open the app, so a browser loaded the link and its "not installed" route ran. Check adb shell pm get-app-links <package> for a host that isn't verified, and test the same link outside Instagram or Facebook.
Why does the Play Store show "Open" instead of opening my app?
The link pointed at the Play Store, or redirected there. The Play Store only knows the app is installed, not which screen the link was for. Use an https:// link your app claims, with the store as the fallback.
Why does the link work in WhatsApp but not in Instagram?
WhatsApp hands links to Android, which opens your verified app. Instagram opens links in its own browser, which loads the page instead. Use a page with an Open in app button that uses an intent:// URL.
Does a debug build open App Links?
Only if assetlinks.json lists the debug build's package name and the fingerprint of your debug key. With an applicationIdSuffix, the debug package name is different, so it usually isn't verified.
How do I stop a link going to the Play Store in an email?
Turn off click tracking for that link, or use a tracking domain your app claims. The tracker's redirect puts a browser between the tap and your app.
Check your link in one go
Paste your link into the Universal Link and App Link validator to see whether assetlinks.json is reachable, has no redirects, and lists your package and fingerprint. Then try it in real apps with the deep link tester. CodeOnAir AppLinks hosts both verification files on your link domain and keeps the link's data through the install. The AppLinks Android docs cover the intent filter and fingerprints. Create a free account to try it with 100 app links.
Checked on 15 November 2026 against Android's "Verify Android App Links" guide and the CodeOnAir link service.