/ 01TOOLFREE TOOLS · FOR DEVELOPERS

Android intent link builder

Turn a deep link into an Android intent:// URL that opens your app, with a Google Play or website fallback for people who don't have it. Also builds the custom-scheme link and a ready-to-paste button. Runs in your browser.

From your app's build.gradle (applicationId) or its Google Play address.

Passed to the app after install through Google Play's Install Referrer API.

Intent link

Enter a deep link.

HTML button

—

JavaScript: Android gets the intent, others the fallback

—

    What each part does

    How an intent link is put together

    Chrome on Android, and most browsers built on it, read a special kind of link. It starts with intent://, carries your deep link without its scheme, and ends with a list of settings between #Intent; and end. The settings say which scheme the app registered, which app may open it (package) and where to go if it can't (S.browser_fallback_url, URL-encoded).

    An intent link, split over lines for reading
    intent://shop.example.com/products/42
      #Intent;scheme=https;package=com.example.shop;
      S.browser_fallback_url=https%3A%2F%2Fplay.google.com%2F...;end

    When a person taps it, the browser asks Android for the app. If it is installed, the app opens with the deep link, ready to route to the product, offer or invite. If not, the browser goes to the fallback. Leave the fallback out and Chrome opens the package's Google Play listing instead, but then the deep link is lost unless you add an install referrer. Google documents the format in Chrome's Android intents guide.

    The format here is the one Strait's link server sends to Android browsers, built the same way and checked against its code in our tests.

    Intent links, custom schemes and App Links

    A custom-scheme link (myshop://products/42) is the oldest way into an app. It needs no website, but it only works when the app is installed: otherwise the tap fails with an error or does nothing. Any app can register the same scheme, so on its own it is not a safe way to send people anywhere.

    An intent link wraps either kind of link with a package name and a fallback, so the tap always lands somewhere useful. It only works on Android, only from a tap on a page, and not inside some in-app browsers.

    App Links are https links your domain vouches for with an assetlinks.json file. Android opens the app directly, and the same link opens your website everywhere else, which makes them the right default for links you share. Check the file with the assetlinks.json checker or make one with the generator.

    A Strait link picks between these for you on every tap: an intent in Android browsers, an "Open in app" page in Instagram or Facebook, a preview card for WhatsApp's link fetcher, and your web page on a computer. On iPhone, Universal Links open the app.

    Questions

    What is an intent:// link?

    A link format Chrome on Android understands: it names the app (by package name), the deep link to hand it, and a web address to use if the app cannot open. One tap opens the app at the right screen, or falls back to Google Play or your website.

    Does an intent:// link work on iPhone?

    No. Safari and every iPhone browser ignore intent:// links, and a computer has no app to open. Show the intent only to Android visitors and send everyone else to your web page or, on iPhone, a Universal Link. The JavaScript snippet above does that switch.

    Why does nothing happen when I paste the intent into the address bar?

    Android browsers only hand a link to an app when a person taps it on a page. Typed or pasted addresses, and redirects that run without a tap, are blocked. Put the link on a page as a button or link and tap it there.

    Should I use my https link or a custom scheme like myapp://?

    Prefer https with verified Android App Links: the same link works on the web, and no other app can claim it. A custom scheme works without a verified domain, but any app can register the same scheme, which is why the builder asks for the package name.

    Will WhatsApp and Instagram open an intent:// link?

    Not reliably. Their in-app browsers often block hand-offs to other apps. That is why a deep-linking service detects in-app browsers and shows a page with an "Open in app" button first. Try a channel in the Will it open my app? simulator to see what happens there.

    One link that picks the right hand-off

    Strait sends an intent link to Android browsers, an "Open in app" page to in-app browsers and your web page to computers, and keeps the deep link through a Google Play install.

    Start free