Check out what’s new from Firebase@ Google I/O 2021, and join our alpha program for early access to the new Remote Config personalization feature. Learn more

Get Started

To get public content from your app into users’ search results in the Google app, start by setting up your app URLs and adding the Firebase App Indexing library.

Add Firebase and the App Indexing library

Although you don’t strictly need Firebase to get your app's public content indexed by Google, App Indexing can help you get more out of Search.

  1. If you haven't already, add Firebase to your Android project.
  2. Using the Firebase Android BoM, declare the dependency for the App Indexing Android library in your module (app-level) Gradle file (usually app/build.gradle).
    dependencies {
        // Import the BoM for the Firebase platform
        implementation platform('')
        // Declare the dependency for the App Indexing library
        // When using the BoM, you don't specify versions in Firebase library dependencies

    By using the Firebase Android BoM, your app will always use compatible versions of the Firebase Android libraries.

    (Alternative) Declare Firebase library dependencies without using the BoM

    If you choose not to use the Firebase BoM, you must specify each Firebase library version in its dependency line.

    Note that if you use multiple Firebase libraries in your app, we highly recommend using the BoM to manage library versions, which ensures that all versions are compatible.

    dependencies {
        // Declare the dependency for the App Indexing library
        // When NOT using the BoM, you must specify versions in Firebase library dependencies

Structure your website and app so the URLs that point to pages on your site are the same URLs that point to views in your Android app. Google Search crawls your site for these links, then uses them to send users directly to your app.

The links in the app are the same HTTP URLs used on the website and follow a clear structure that matches page types to app view types. Follow this type of structure in your app and website.

To streamline your work, understand the number and types of links you'll need to support before you start building your app. Also make sure you create good titles and descriptions for your pages.

Once you've defined your structure and start creating screens in your app, remember that you also need back navigation. Users should return to the previous screen if they tap the back button after opening a link.

For public content included in Google Search results handle links to your app through Android App Links. Android App Links help you make sure users land in the right place when they open a link to your app. Users that don't have your app installed can also run your app without installing it through Android Instant Apps.

Android App Links include two major components:

  1. Deep links to your app content: Add intent filters to your manifest to define the HTTP URL mapping you set up in the step above, then configure your app to use data from the intents to send users to the right content. Learn more in Create Deep Links to App Content.
  2. Link verification: Configure your app to request link verification, confirming ownership of both your site and your app. Then, publish a Digital Asset Links file to your website that verifies your ownership. Learn more in Verify App Links.

The App Links Assistant in Android Studio walks you through the process outlined in the Android App Links documentation. Learn more about using the App Links Assistant.

Next: Refine Public Content Indexing