# Why Universal Links Break in In-App Browsers

Canonical URL: https://linkrunner.io/blog/universal-links-app-links-break-in-app-browsers
Markdown twin: https://linkrunner.io/blog/universal-links-app-links-break-in-app-browsers.md
AEO spec: 1.0

Deep links failing inside Instagram, TikTok, WhatsApp, Gmail or SMS? Why in-app browsers block Universal Links and App Links, with a per-app table and fixes.

Category: Deep Linking
Author: lakshith-dinesh
Published: 2026-11-05

## Article

Your Universal Links work in Safari. They work in Chrome. Then a real user taps one inside Instagram, TikTok or Gmail and lands on your mobile website instead of your app. It is the most common deep linking failure in production, and every test you ran in a system browser missed it.

The reliable fix is an intermediary page with an "Open in app" button, which turns the first page load into a real tap the operating system can route. Linkrunner serves this page by default through its [social media intermediary page](https://docs.linkrunner.io/features/social-media-intermediary-page), and pairs it with deferred deep linking for users who do not have the app yet.

This guide explains why in-app browsers break links, how WhatsApp, SMS and email behave differently from social apps, and how to test each one.

## Why do Universal Links break inside in-app browsers?

**[Universal Links](https://linkrunner.io/glossary/what-is-universal-links) on iOS and [App Links](https://linkrunner.io/glossary/what-is-app-links) on Android only open your app when the operating system handles a user's tap. Social apps open links in their own embedded browser instead, so the link loads as a web page and the OS never gets the chance to hand it to your app.**

The main causes:

- **Embedded web views:** a WKWebView on iOS or a raw WebView on Android loads the URL itself. No OS routing happens.
- **JavaScript redirects:** iOS only routes user-initiated taps, so a `window.location` redirect to your link domain is ignored.
- **Redirect hops:** a tracking or short-link domain in front of your link domain means the tapped domain is not a Universal Link domain.
- **Parameter changes:** some apps append or rewrite query parameters (Facebook adds `fbclid`), so routing that expects an exact URL can open the home screen.

## How Universal Links and App Links are supposed to work

- **iOS:** the app lists your domain in Associated Domains, and the device downloads your AASA file from Apple's CDN on install. When the user taps a matching link in a context that hands links to iOS, the app opens.
- **Android:** the app declares a verified intent filter, and Android checks your assetlinks.json. A tap that reaches Android as a VIEW intent opens the app without a chooser.

Both were designed for taps in system contexts: Safari, Chrome, Messages, Notes. If the link works there and fails in a social app, your files are fine and the browser is the problem. If it fails in Safari too, start with our [Universal Links troubleshooting guide](https://linkrunner.io/blog/why-your-deep-links-break-on-ios-and-how-to-fix-every-failure-mode) or the [Android App Links guide](https://linkrunner.io/blog/android-app-links-not-working).

## Social apps: what each one does

Behaviour changes with app updates, so treat this as a starting test plan rather than a guarantee.

| App | Opens links in | Direct Universal Link / App Link | Fix |
|---|---|---|---|
| Instagram | Its own in-app browser | Usually loads as a web page | Intermediary page |
| Facebook | Its own in-app browser | Usually loads as a web page; appends `fbclid` | Intermediary page; tolerant URL parsing |
| TikTok | Its own in-app browser | Usually loads as a web page | Intermediary page; keep routing context in the path |
| LinkedIn | Its own in-app browser | Often loads as a web page | Intermediary page |
| Snapchat | Its own in-app browser | Varies by version | Test after each app update |
| X | In-app browser or system view, by version | Varies | Test both platforms |

On Android, the browser component decides. [Custom Tabs open installed apps by default](https://developer.chrome.com/docs/android/custom-tabs/howto-custom-tab-native-apps), but raw WebViews never ask Android to route the link.

Asked in the Linkrunner community: [Our deep links break inside Instagram and TikTok. Has anyone actually fixed this?](https://linkrunner.io/community/which-deep-linking-tools-work-in-instagram-and-tiktok-in-app-browsers.md) (answered by the Linkrunner team)

## WhatsApp, SMS and email: how links behave

Messaging and email apps mostly hand links to the operating system, so Universal Links and App Links usually work. The breakage comes from what sits in front of the link: click trackers, shorteners and in-app browsers in some email clients.

| Where the user taps | How the link usually opens | iOS Universal Link | Android App Link | Watch out for |
|---|---|---|---|---|
| WhatsApp | Handed to the OS or default browser | Usually opens the app | Usually opens the app | Shared short-link domains that redirect; the preview fetch is not a tap |
| iMessage (Messages, iOS) | Handed to iOS | Opens the app | Not applicable | Links typed by hand still need the full `https://` URL |
| Google Messages and other Android SMS apps | Android VIEW intent | Not applicable | Opens the app if verified | Shared shorteners can be flagged as spam |
| Commercial SMS in India | As above | As above | As above | Carriers require DLT-registered sender IDs and link domains |
| Apple Mail | Handed to iOS | Opens the app | Not applicable | ESP click tracking replaces your domain |
| Gmail (iOS) | In-app browser, Safari or Chrome, per the user's Gmail setting | Fails in the in-app browser | Not applicable | Most users never change the default |
| Gmail (Android) | Chrome Custom Tab | Not applicable | Usually opens the app | ESP click tracking |
| Outlook | In-app browser or system browser, per settings | Varies | Varies | Test both settings |

**Email click tracking is the biggest trap.** Your ESP rewrites every link to its own tracking domain, so the domain the user taps is not your Universal Link domain. Two fixes:

- **Host your AASA and assetlinks.json on the click-tracking domain.** SendGrid documents this in its [Universal Links guide](https://docs.sendgrid.com/ui/sending-email/universal-links), with tagged links that keep click tracking.
- **Turn off ESP tracking on app links** and measure clicks on your link service instead, so the tap goes straight to your link domain.

Our guides on [deep links for WhatsApp and SMS](https://linkrunner.io/blog/deep-linking-for-sms-and-whatsapp-how-to-route-text-based-traffic-into-your-app) and [email and CRM deep linking](https://linkrunner.io/blog/deep-linking-for-email-and-crm-campaigns-reducing-drop-off-from-inbox-to-app) go deeper on each channel.

## Diagnosing which failure you have

1. **Does the link work in Safari or Chrome on the same device?** If not, the problem is your AASA, assetlinks.json or app config, not the in-app browser.
2. **Does it fail in every social app or only some?** Some means you need per-app handling.
3. **Does the app open but on the home screen?** Parameters were lost in a redirect or rewritten by the host app.
4. **Did it work before a recent OS or app update?** A regression from the platform, not your code.
5. **Does it fail from email but not from SMS?** Check for click tracking on the email link.

For the Instagram case specifically, see [Deep Link Doctor on links opening the website in Instagram](https://deeplinkdoctor.com/problems/links-open-website-in-instagram/).

## The fixes that work

**The intermediary page.** Send social traffic to a lightweight page that detects the in-app browser and shows a clear "Open in app" button. The tap on that button is user-initiated, so iOS and Android can route it. The cost is one extra screen; the alternative is a web page that rarely converts to an app open.

**Server-side detection.** Detect the in-app browser from the user agent on the server and decide before the page renders. It is faster and more reliable than JavaScript inside a restricted web view.

**Android intent fallback.** On the intermediary page, point the button at an `intent://` URL with `S.browser_fallback_url` set to your store or web page, so a missing app falls back cleanly.

**Custom URI schemes as a last resort.** A `myapp://` link can open an installed app from some web views, but it shows an error when the app is missing and cannot do [deferred deep linking](https://linkrunner.io/glossary/what-is-deferred-deep-linking). Use it only for users you know have the app.

**Keep redirects short.** Every hop is another place to lose parameters or the tap. Use server-side 302s, not JavaScript, and keep routing context in the path where possible.

## How to test across in-app browsers

**Build a matrix:** source app (Instagram, Facebook, TikTok, LinkedIn, WhatsApp, Gmail, SMS), OS (current and previous iOS and Android), and link state (app installed, not installed).

- Create test links that open a specific screen, not the home screen.
- Send each link through the real channel: a private story, a DM, a WhatsApp chat, a test email through your ESP.
- Tap from inside that app and record whether the app opened, which screen loaded, and whether the campaign was attributed.
- Re-run the top combinations after every major iOS and Android release, and after big social app updates.

In production, watch the ratio of link clicks to app opens per source. A sudden drop for one source usually means that app changed its browser.

## Architecture choices that prevent breakage

- **Use a link service that handles in-app browsers.** Maintaining workarounds for half a dozen apps on two platforms is a standing engineering cost. In-app browser handling is one of the [features a deep linking tool must provide](https://linkrunner.io/blog/how-to-choose-a-deep-linking-tool).
- **Keep association files healthy.** Check them monthly, and confirm Apple's CDN copy after any change. A spell of 404s on your AASA can be cached by Apple for days.
- **Alert on drops.** Flag any source whose click-to-open ratio falls well below its seven-day average.

## FAQ

**Why do Universal Links work in Safari but not inside Instagram?**
Safari hands taps on Universal Links to iOS. Instagram loads links in its own embedded browser, which does not, so the link opens as a web page. An intermediary page with an "Open in app" button fixes it.

**Do deep links work in WhatsApp?**
Usually, yes. WhatsApp hands links to the operating system, so Universal Links and App Links generally open the app. Failures normally come from a redirecting short-link domain in front of your link domain.

**Why do deep links in emails open the browser instead of the app?**
Your email provider's click tracking replaces your link domain with its own, so iOS does not recognise it as a Universal Link. Host your AASA on the click-tracking domain or turn off tracking on app links. Gmail on iOS can also open links in its in-app browser.

**Do Android App Links have the same problem?**
Partly. Custom Tabs open installed apps by default, but raw WebViews do not, so the same link can work from one app and fail from another. The intermediary page fixes both.

**Can I use a custom URI scheme as a fallback?**
Only for users you know have the app. URI schemes show an error when the app is missing and do not support deferred deep linking.

## What we would fix first

Put an intermediary page in front of your highest-traffic social source, then check that email links are not wrapped by click tracking. Those two changes cover the bulk of in-app browser failures for most apps.

If maintaining per-app workarounds is eating engineering time, [Linkrunner](https://www.linkrunner.io/) detects in-app browsers on the server, serves the intermediary page and makes every link deferred by default. [Request a demo](https://www.linkrunner.io/) to test it against your own traffic sources.

## Related reading

- [Universal Links Not Working on iOS: Every Fix](https://linkrunner.io/blog/why-your-deep-links-break-on-ios-and-how-to-fix-every-failure-mode.md): iOS Universal Links opening Safari or the App Store instead of your app? Symptom, cause and fix for every failure mode, with Apple's CDN check and TN3155.
- [Universal Links and App Links Setup Guide](https://linkrunner.io/blog/universal-links-app-links-setup.md): Set up iOS Universal Links and Android App Links on a branded domain: DNS, SSL, AASA, assetlinks.json, app config and testing, without weeks of engineering.
- [How to Choose a Deep Linking Tool: 10 Must-Have Features](https://linkrunner.io/blog/how-to-choose-a-deep-linking-tool.md): Choose a deep linking tool in four steps: map your stack, score 10 must-have features, decide on attribution, then match price and plan to your install volume.
- [Best Deep Linking Tools for In-App Browsers](https://linkrunner.io/blog/best-deep-linking-tools-for-in-app-browsers.md): Which deep linking tools keep attribution when links open in in-app browsers from WhatsApp, SMS, email and social apps, and how each hands off to your app.
