Technology

How App-to-App Redirection Actually Works: Deep Links Explained

URI schemes, Universal Links, App Links, and graceful fallbacks — the real technical story behind opening a link directly in a native app.

PocoLink Team
February 14, 2026
8 min read

When you tap a YouTube link on your phone and it opens in the YouTube app instead of a browser, that's deep linking. It feels invisible when it works, but there's a specific sequence of OS-level decisions happening in milliseconds. Here's the actual mechanism.

Why the Default Behavior Is a Browser

Mobile operating systems don't inherently know that a link to youtube.com/watch?v=abc should open the YouTube app. Left to their defaults, both iOS and Android will open any https:// link in the default browser. Getting to the app requires one of two approaches: URI schemes or Universal/App Links.

URI Schemes: The Original Method

Every major app registers a custom URL scheme with the OS during installation. YouTube's is youtube://, Spotify's is spotify://, Instagram's is instagram://. These are like private address formats that only the app understands.

To deep link via URI scheme, the web URL gets rewritten to the app's format. A link like https://youtube.com/watch?v=dQw4w9WgXcQ becomes youtube://watch?v=dQw4w9WgXcQ. When the browser encounters a youtube:// link, it passes control to the OS, which opens the registered app.

The limitation: URI schemes only work if the app is installed. If it isn't, you get an error instead of a fallback — which is why the graceful fallback step matters.

Universal Links (iOS) and App Links (Android): The Modern Approach

URI schemes were fragile and easy to fake — any app could register any scheme. Universal Links (iOS 9+) and App Links (Android 6+) solved this by tying app opening to verified domain ownership.

Here's how they work: an app developer hosts a configuration file on their domain (Apple calls it apple-app-site-association; Google calls it assetlinks.json). This file says "this app is allowed to handle links from this domain." When the OS sees a standard https:// link pointing to that domain, it checks the configuration file and, if the app is installed and verified, opens the app directly — bypassing the browser entirely.

Universal Links are more reliable than URI schemes and harder to abuse, but they require the target site (YouTube, Spotify, etc.) to have set up their configuration file correctly. Most major platforms have.

How PocoLink Handles the Redirect

When someone clicks a PocoLink, a small redirect page runs at the edge (under 100ms) before the user reaches the destination. That page:

  1. Reads the User-Agent header to identify OS (iOS, Android, or desktop)
  2. Checks the destination URL against a list of supported app domains
  3. If supported and on mobile: attempts the URI scheme or Universal Link redirect
  4. If the app isn't installed: falls back to the web URL — no error, no dead end
  5. If desktop: skips app detection and redirects directly to the web URL

The One Case Where It Doesn't Work

In-app browsers (the browser that opens when you tap a link inside Facebook, Instagram, or Twitter) run in a sandboxed environment. The OS doesn't process URI schemes or Universal Links through in-app browsers the same way it does through Safari or Chrome. Users in those contexts will get the web fallback regardless. This isn't a PocoLink limitation — it affects all deep linking implementations on those platforms.