App indexing means making the content inside a mobile app reachable from search. Someone searches, taps a result, and lands on the matching screen in your app instead of the web page. If they don't have the app, the same result opens your website, so nobody hits a dead end.
The name comes from Google's old product, Firebase App Indexing. Firebase now says it's no longer the recommended way to do this, and the Google Search App for Android no longer uses content indexed through it. Firebase recommends Android App Links and Apple's Universal Links instead. Firebase
How it works today
Search engines index your web pages, not your app. So every app screen you want reachable from search needs a matching web page at a stable URL, and that page ranks like any other.
You then verify that your app and your website belong together. Once verified, a tap on one of your URLs opens the app if it's installed. If it isn't, the URL opens in the browser and your website handles it. Apple describes Universal Links as standard web links: one URL works for both your site and your app. Apple Developer
This is a verified kind of deep link. Plain deep links work too, but on Android they show an "Open with" choice, and only verified links can claim your website's URLs.
Set up Android App Links
- Add intent filters to your app manifest for the URLs your app handles. They need the
VIEWaction, theBROWSABLEandDEFAULTcategories, anhttporhttpsscheme, andandroid:autoVerify="true". - Publish a Digital Asset Links file at
https://yourdomain/.well-known/assetlinks.jsonfor every host in those filters. It names your app's package and signing certificate. - Install and test. On Android 6.0 (API level 23) and later, the system checks the file when the app is installed, and verified links then open in your app without asking. On Android 11 and lower, verification only succeeds if every host in the manifest has a matching file. Android Developers
You can test a link from a computer with Android Debug Bridge, for example adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://yourdomain/recipes/chocolate-cake".
Set up Universal Links on iOS
- Add the Associated Domains capability to your app in Xcode, with an entry such as
applinks:yourdomain.com. - Host an
apple-app-site-associationfile in your site's.well-knowndirectory. Apple requires it to be served overhttps://with a valid certificate and no redirects. - Handle the incoming link in your app and route it to the right screen.
One behavior surprises people when testing. If someone is already browsing your site in Safari and taps a link to the same domain, iOS keeps them in Safari. Test by tapping your link from another app, such as Notes or Messages.
Keep web and app in step
- Show the same content on both. The person tapped a result for the web page; the app screen should give them that content.
- Let crawlers in. Search can only find app content through the web page, so don't block those pages in robots.txt.
- Land on the content. Don't send search visitors to a login screen, splash page or ad first.
- Make Back work. After a deep link, the back button should return people to where they came from.
What old guides get wrong
Tutorials from the Firebase era tell you to add android-app:// alternate links to your pages, call the App Indexing API, install the GoogleAppIndexing SDK for iOS and watch app reports in Search Console. Skip all of it. Search Console dropped its Android app search appearance data from the API in 2019. Google Search Central
To measure results today, use the Performance report in Google Search Console for the web pages behind your app screens, and your app analytics for opens that arrive through those links.
What if you don't have a website?
Then search can't open your app, because search results point to web pages and both App Links and Universal Links verify against your own domain. Plain deep links still work for links you share yourself, such as in emails or ads.