Deep Links: Open Short Links in Native Apps
A mobile user who lands in Safari instead of the YouTube app is a user who won't subscribe, comment, or watch to the end. Deep links fix that, here's how Flyn implements them, what works on iOS vs Android, and how to enable them in a single toggle.

The Problem with Mobile Short Links
You publish a YouTube video. You share the link in your newsletter, in a Slack community, in your podcast show notes. A subscriber taps the link on their phone. They expect the YouTube app to open. Instead, a stripped-down mobile web page loads in Safari or Chrome, no recommendations sidebar, no comments tied to their account, no native playback controls, no easy way to subscribe. If you used Firebase Dynamic Links for this before Google shut it down, our Firebase Dynamic Links migration guide maps every capability to a replacement.
The subscriber bounces. You lose the engagement signal YouTube's algorithm needs to recommend your video. The same story plays out for every Spotify playlist link, every Instagram profile share, every TikTok creator URL, the mobile web is consistently worse than the native app, and yet the mobile web is what users get by default when they tap a short link.
Why this happens
Short links are HTTP URLs. When a mobile browser receives a 302 redirect from flyn.to/q2-launch to https://www.youtube.com/watch?v=..., it follows the redirect inside the browser. The OS doesn't know the YouTube app could have handled this URL. The browser stays in front. The user shrugs and watches in the worst possible context.
What you lose every day this stays broken
- Session length: a visitor who lands in the app is already signed in, with their feed and history, where a browser tab starts cold
- Conversion events: subscribes, follows, likes, saves, comments, all higher in-app
- Repeat visits: once a user opens your content in the native app, the app is also in their recent-apps switcher; web pages aren't
- Algorithm signal: every platform's ranking model weights native engagement heavier than web engagement
If you're sharing links to content on YouTube, Instagram, TikTok, or Spotify and they're not deep-linked, you're leaving real attention on the table. The fix is a single toggle.
What Deep Links Actually Are
A deep link is a URL that, when opened on a mobile device, launches the native app for the destination and navigates to a specific screen, not the app's home screen, but the exact piece of content. Tap a deep link to a TikTok video and the TikTok app opens directly on that video.
Under the hood, deep links use platform-specific routing mechanisms. iOS and Android handle them differently.
iOS: Universal Links and URI schemes
Apple's preferred mechanism is the universal link, a plain HTTPS URL that the OS knows belongs to a registered app. Apps declare which domains they handle via an apple-app-site-association file, and when the user taps a matching URL, iOS opens the app instead of the browser. YouTube, Instagram, Spotify, and every other major app does this.
The older mechanism is the custom URI scheme: vnd.youtube://watch?v=abc, instagram://user?username=jane, spotify://track/.... These work but only fire if the app is installed; if it isn't, the browser shows an error. They're still useful as fallbacks, but universal links are the modern default.
Android: Intent URLs
Android uses intent URLs, a special URL format that encodes both the target app package and a fallback URL: intent://www.youtube.com/watch?v=abc#Intent;package=com.google.android.youtube;scheme=https;S.browser_fallback_url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dabc;end. If the YouTube app is installed, it opens. If not, the browser navigates to the fallback URL automatically.
How Flyn unifies both
Writing the right URI scheme by hand for 18 platforms across two operating systems is the kind of busy work nobody should do. Flyn does it for you. When you enable Deep Links on a short link, Flyn's redirect server inspects the User-Agent, picks the correct routing strategy for the device, and serves the right HTML or URL. You toggle a switch.
Supported Platforms (and How Each One Routes)
Flyn ships with first-class deep-link routing for 18 platforms: every app in the table below, plus App Store links on iOS and Google Play links on Android, which open the store app. Each one has its own URI scheme handling, fallback behavior, and platform quirks, but you don't need to know any of them.
The full list
| Platform | iOS URI scheme | Android handling | Sibling shortener |
|---|---|---|---|
| YouTube | vnd.youtube:// | com.google.android.youtube intent | YouTube |
instagram:// | com.instagram.android intent | ||
| TikTok | snssdk1233:// (none for share short links) | com.zhiliaoapp.musically intent | TikTok |
| Twitter / X | twitter:// | com.twitter.android intent | Twitter/X |
| Spotify | spotify:// | com.spotify.music intent | Spotify |
linkedin:// | com.linkedin.android intent | ||
fb:// | com.facebook.katana intent | ||
reddit:// | com.reddit.frontpage intent | ||
pinterest:// | com.pinterest intent | ||
whatsapp:// | com.whatsapp intent | ||
| Telegram | tg:// | org.telegram.messenger intent | Telegram |
| Discord | discord:// | com.discord intent | Discord |
| Twitch | twitch:// | tv.twitch.android.app intent | Twitch |
| Amazon | com.amazon.mobile.shopping:// | com.amazon.mShop.android.shopping intent | Amazon |
| GitHub | github:// (opens the app, not the page) | com.github.android intent | GitHub |
| Snapchat | snapchat:// | com.snapchat.android intent | Snapchat |
On iOS, a few link forms have no documented app scheme, so Flyn skips the app page and the link behaves as it would without deep linking, usually a plain redirect to the web page: TikTok share links (vm.tiktok.com, vt.tiktok.com and tiktok.com/t/), most X web intents, WhatsApp group invites, catalog and message links, Discord event invites, and Telegram link types Flyn does not map, such as sticker sets. Some others open the app's home screen rather than the exact page: Instagram posts and reels, every GitHub page, and pages Flyn does not map to a specific screen, such as TikTok profiles and Pinterest boards. Android gets an intent URL for every supported link.
Need a platform that isn't listed? Email the team. Each platform is its own small matcher in Flyn's redirect code, so adding one is a code change that ships in a release.
Platform-shortener pairing
Flyn picks the app by the destination's hostname, so point the link at the platform's own URL (open.spotify.com, youtube.com, instagram.com) rather than at another short link that redirects there; a destination it does not recognize gets an ordinary redirect to the web. Each platform also has its own page with link examples, such as the Spotify shortener, the YouTube shortener and the Instagram shortener.
iOS vs Android: The Differences That Actually Matter
From a Flyn user's perspective, deep linking is one toggle. From the implementation side, iOS and Android behave differently in ways that occasionally surface to the user. Understanding the differences helps you debug edge cases.
The behavior matrix
| Scenario | iOS | Android |
|---|---|---|
| App installed | Opens the app via its URI scheme | Opens app via intent URL (silent) |
| App not installed (URI scheme attempt) | Shows "Cannot open page" error briefly, then falls back | Falls back silently via browser_fallback_url |
| Link form with no iOS scheme (for example a WhatsApp group invite) | No app page; the link redirects as it would without deep linking | The standard Android page with its intent URL |
| In-app browser (Instagram, Facebook, Messenger, TikTok, Snapchat, LINE, LinkedIn) | An escape page with a button to open the app; if the visitor is still there about 2 seconds later, it adds that app's menu step out to the system browser and a website link | The standard Android page: it tries the app, then the web URL after about 2 seconds |
| Private/incognito mode | Same page; URI schemes still work | Intent URLs still work |
| Search engine crawler | Usually a plain 302 to web URL; a preview page if the link has its own preview fields | Same as iOS |
The in-app browser problem
The single most common deep-link complaint is: "I tapped the link inside Instagram and it didn't open the YouTube app, it opened YouTube in Instagram's in-app browser." This isn't a Flyn bug; it's Instagram's in-app browser intercepting the link. On iPhone, social in-app browsers, Meta's in particular, also block the automatic app handoff that works in Safari, so a page that tries to open the app on its own can fail without a word.
The mitigation: on iPhone, Flyn detects the Instagram, Facebook, Messenger, TikTok, Snapchat, LINE and LinkedIn in-app browsers by User-Agent and serves an escape page instead of the automatic handoff. The page names the app (for example, "Open in YouTube") and shows one button that opens it, because a real tap has the best chance of reaching the app; an App Store link is also tried once on its own. If the visitor is still on the page about 2 seconds later, it adds that in-app browser's menu step out to the system browser (inside Instagram: the three dots at the top right, then "Open in external browser") and an "Open the website instead" link. On Android, in-app browsers get the same page as any Android browser, which tries the app's intent URL and moves to the web URL after about 2 seconds. Once the link is open in the system browser, the standard deep-link page runs.
iPad and tablet handling
Deep links sort a request by the user agent the browser sends, not by the shape of the device. The deep-link step serves its native-app page only to a request whose user agent names an iPhone, iPad, iPod or Android device, and it reads a Mac-like user agent as desktop. Safari on iPad usually presents a Mac-like user agent, because it asks for the desktop version of websites by default, and Android tablets set to request desktop sites can send a desktop user agent too. On a link with a Mac URL, Flyn first checks whether a Safari visitor is on a Mac or an iPad, with a blank device check page, and then routes the click. Why Safari on iPad reports itself as a Mac, and how to test it, is in iPad Safari says it is a Mac.
The 2-second fallback timer
Flyn's redirect page tries the app as soon as it loads and starts a 2-second JavaScript timer. If the app opens, the page loses focus and the timer does nothing. If the page is still in front when the timer fires, it redirects to the web URL, and if the page has not moved to the web URL by 3 seconds, an "Open in browser instead" link appears. Two seconds is meant to give the OS time to launch the app while keeping the wait short for a visitor without it. To route the same link by country as well as device, see our guide to geo-targeting links by country.
How to Enable Deep Links
Two ways, dashboard or API.
From the dashboard
Create or edit any short link. Open the Routing tab. Toggle Open in native app on. Save. That's the whole flow. You don't pick a platform, Flyn auto-detects the destination URL and applies the matching routing strategy.
From the API
Set deepLink: true in the body of POST /api/links:
- Required field:
url(the long URL to a supported platform) - Add
deepLink: trueto enable native-app routing - Combine with other fields such as
slug,tagsorexpiresAt; UTM parameters go in theurlitself
See the deep links API doc for the full field reference and the API guide for authentication and rate limits. Same flag applies to PATCH /api/links/:id if you're retrofitting deep linking onto existing short links.
From the Chrome extension
The Flyn Chrome extension lets you shorten any URL in one click from your browser toolbar. The extension has no deep-link setting of its own, so after it creates a link, open that link in the dashboard and turn on Open in native app on the Routing tab, or send deepLink: true to PATCH /api/links/:id.
Tap every newly deep-linked URL on a real iPhone and a real Android phone before you publish it, once with the app installed and once without. A destination Flyn does not recognize as a supported platform gets an ordinary redirect to the web, so a typo in the destination's domain shows up as a link that goes straight to the web. The deep link tester covers a different check: whether your own app's domain has its iOS and Android app-link files set up.
How It Works Under the Hood
When a request hits a deep-linked Flyn short link, the redirect server runs a five-step decision tree. Understanding it makes debugging trivial.
Step 1: User-Agent classification
The server parses the User-Agent header and classifies the request as iOS, Android, or desktop, and separately flags in-app browsers (Instagram, Facebook, Messenger, TikTok, Snapchat, LINE and LinkedIn) and crawlers (Twitterbot, facebookexternalhit, LinkedInBot, Googlebot, etc.).
Step 2: Crawler short-circuit
If the request is from a crawler, the server skips the deep-link page and answers exactly as it would for a link without deep linking: usually a plain 302 Found to the destination URL, or, when you gave the link its own preview title, description or image, a small page carrying those Open Graph tags. Either way, social link previews and SEO crawlers never see the app page. Verify with the Open Graph checker if you're paranoid.
Step 3: Desktop short-circuit
Desktop browsers skip the native-app step and usually get a plain 302 to the web URL. There's no native app to route to on macOS or Windows, opening the link in Chrome or Safari is the right behavior. If the link also has a Windows or Mac URL on the Routing tab, desktop visitors on that system are sent there instead, because device rules run before the deep-link step. On a link with a Mac URL, Safari on a Mac or an iPad first gets a blank device check page, then continues (with JavaScript off it continues as a Mac), while Chrome, Edge and Firefox on a Mac go straight to the Mac URL.
Step 4: Mobile routing
For mobile visitors, apart from the iPhone in-app browser taps in Step 5, the server returns a lightweight HTML page with inline CSS and JavaScript, unless the link form has no app address for that phone, in which case the link behaves as it would without deep linking. The page:
- Sends the browser to the app as soon as it loads: the URI scheme on iPhone (for a YouTube video,
vnd.youtube://) or theintent://URL on Android - Starts a 2-second
setTimeoutthat redirects to the web URL if the page is still in front - Shows an "Open in browser instead" link after 3 seconds if the page has not moved to the web URL by then
- Shows an "Opening in app..." spinner so users who do see the page briefly understand what's happening
Step 5: In-app browser escape page on iPhone
If the request comes from an iPhone and the User-Agent matches the Instagram, Facebook, Messenger, TikTok, Snapchat, LINE or LinkedIn in-app browser, the server skips the automatic handoff, which those browsers block, and returns an escape page: a button named for the app, such as "Open in YouTube", then, if the visitor is still there about 2 seconds later, that in-app browser's menu step out to the system browser and an "Open the website instead" link. Android in-app browsers get the Step 4 page.
The best deep-link implementation is the one users never notice. If your subscriber taps a link in Slack and the YouTube app opens to your video, that's the goal. No "did this work?" moment, no fallback page, no spinner. Just the native app, ready to play.
Compatibility with Other Flyn Features
Deep linking composes with everything else Flyn does. The redirect engine evaluates features in a deterministic order, so there's no surprise interaction.
The evaluation order
- Expiration check, if
expires_athas passed, the user sees the "link expired" page (a crawler gets a410 Gone); otherwise, continue - Click limit, once a link has reached its cap, later clicks go to its fallback URL, or to a "no longer available" page if it has none
- Password gate, if a password is set, the user sees the prompt; after the right password Flyn sends them to the main destination, so device and country rules, the A/B split and deep linking do not run on a password-protected link
- Crawler check, known crawlers skip the routing, A/B and deep-link steps below and are not counted as clicks (see click fraud prevention)
- Device rules, an iOS, Android, Windows or Mac URL set on the Routing tab is picked first
- Country rules, checked only when no device rule matched
- A/B testing splits, applied only when no device or country rule matched, picking one of the link's destinations by weight
- Deep link routing, the destination chosen above feeds into the deep-link logic described above
Analytics behavior
Every click on a deep-linked short link is recorded in Flyn analytics with the same fidelity as any other click: geo, device, OS, browser and referrer. On Pro, the operating system and referrer breakdowns show which clicks came from iOS or Android and which sites referred them, a signal of where the link is being shared. Flyn records the click when it serves the page, and your analytics do not show whether the app opened.
Custom OG previews still work
Crawlers never get the deep-link page. A link without its own preview fields usually gives them a plain redirect, so your destination URL's Open Graph tags (title, description, image) are what social platforms render in preview cards; a link with its own preview title, description or image serves those instead. If you want to validate that your previews look right, run the destination URL through the Open Graph checker. It tests the exact response Facebook, Twitter, and LinkedIn see.
Deep linking and link cloaking do not work together on one short link. When a phone gets the deep-link page, it is served before the cloaking step, so that visitor never sees the cloaked frame. Cloaking only reaches visitors who get no app page, such as desktop browsers, and Flyn frames the destination only when it allows framing, which YouTube, Instagram and Amazon do not. If you need a masked link too, use a second short link for it.
When to Use Deep Links (and When Not To)
Deep linking helps whenever your destination is a piece of content on a platform with a strong native app. It doesn't help when there's no app, the app is poorly maintained, or the destination is a marketing landing page that lives only on the web.
Strong candidates for deep linking
- Newsletter links to YouTube videos, subscriber bases tap from email apps on mobile
- Podcast show-note links to Spotify shows and episodes, which listeners expect to open in the Spotify app (Apple Podcasts links are not among the 18 platforms)
- Bio links, Linktree alternatives benefit massively from native-app open
- Social media cross-posts, tweet a TikTok link, deep-link it so the TikTok app opens
- Discord invites and Telegram channel links, almost always tapped on mobile
- WhatsApp Business catalog links, which open the WhatsApp app on Android while iOS skips the app page, see the catalog strategy guide
When deep linking doesn't apply
- Marketing landing pages, your own website has no native app; web is the destination
- Generic
example.comURLs, only platforms with registered apps benefit - Internal corporate links, your team's SharePoint or Notion doesn't need to open natively
- Print QR codes, fine to deep-link these, but the user is already opening via camera, so the UX win is smaller
How to measure the win
Enable deep linking on a representative set of links for one week. Compare the click-through-to-conversion rate (subscribes, follows, saves, plays) against the same set during the previous week without deep linking. If the in-app numbers come out ahead, that is a free, no-code win, and it is why many teams turn deep linking on and leave it on.
A pragmatic enablement rollout
If you manage hundreds of existing short links, don't enable deep linking on everything at once, instead, enable it on the 10 highest-traffic links pointing to YouTube, Instagram, and Spotify. Watch a week of analytics. If engagement rises, script the rollout: a tiny script that lists all your links via GET /api/links, filters by destination domain, and PATCHes deepLink: true. See the API guide for the rate-limit pattern.
What is deep linking?
Deep linking is sending someone to a specific place inside an app instead of to a website or the app's home screen. A normal link opens a browser. A deep link opens the YouTube app on the exact video, the Instagram app on the right profile, or your own app on the screen the user expected. The "deep" part means it reaches a precise destination, not just the front door.
The three flavors
- URI scheme links such as
instagram://user?username=flynlinks: the oldest method, fast but they fail silently when the app is not installed. - Universal Links (iOS) and App Links (Android): standard
https://URLs the operating system routes into the app when it is installed, and to the web when it is not. The modern default. - Deferred deep linking: the intended destination survives an app install, so a brand-new user still lands on the right screen after downloading.
You do not have to hand-write any of this. Build one with the deep link generator, tap it on a real phone to see where it lands, check your own app's domain for its iOS and Android app-link files with the deep link tester, and see the routing details in the deep links docs.
Frequently Asked Questions
What happens if the user does not have the native app installed?
browser_fallback_url, with the same 2-second timer behind it; on iOS, the timer fires the fallback. The visitor ends up on the mobile web version of the destination, the same page they would have seen without deep linking. Inside a social app on iPhone, the escape page described above runs instead.Do Deep Links affect my click analytics?
Do Deep Links work on desktop browsers?
302 redirect to the destination web URL, or to the Windows or Mac URL when the link has one. On a link with a Mac URL, Safari on a Mac or iPad first gets a blank device check page, then continues. Search engine crawlers (Googlebot, Bingbot) and social media crawlers (Twitterbot, facebookexternalhit, LinkedInBot) also skip the native-app step, so SEO and link previews are unaffected.Can I use Deep Links with A/B testing or password protection?
Which platforms support Flyn Deep Links?
Do social media link previews still render correctly with Deep Links?
302 redirect to the destination web URL, where they read its Open Graph and Twitter Card tags, or, if you gave the link its own preview title, description or image, a page carrying those tags, just as they would for a link without deep linking. You can verify previews with the Open Graph checker or the redirect checker before publishing.Why does my deep link sometimes open in the Instagram in-app browser instead of the YouTube app?
How do I test what my deep-linked short link will actually do on different devices?
What is deep linking?
Free tools for this
Three Flyn tools that pair well with the strategy in this article, all free, no signup needed.
UTM Builder
Build campaign-tracked URLs in seconds.
Broken Link Checker
Scan any page for dead links and 404s.
Open Graph Checker
Preview how URLs unfurl on social.
Keep reading
Three related deep-dives from the Flyn blog.

How to Track Which Posts Drive Sales, Not Just Clicks
19 min read
Email Newsletter Click Tracking: Measure Your Real CTR
12 min read

How to Choose a Branded Short Domain for Your Links
13 min read
Ready to try Flyn?
Free plan includes 25 links/month, full analytics, and access to all 30+ free tools above. No credit card required.
Already a member? Log in

Karan Bhakuni is the founder of Flyn. He writes about branded links, click analytics, and the link-management tooling growth teams and creators actually need, drawn from building Flyn and reading a lot of user feedback.
Find these guides useful? Add Flyn as a preferred source so more of them show up in your Google results.