Implementing App Indexing for Android App

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Implementing App Indexing for Android App
Medium
~2-3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

App Indexing Implementation for Android Applications

App Indexing is a mechanism that allows Google to index content within Android applications and show it in search results. The user searches on Google—sees a result with a deep link to your application, taps—goes straight to the needed screen. If the application is not installed—redirect to the web version.

Technically, this is a combination of two things: App Links (domain verification for reliable deep links) and Firebase App Indexing SDK (activity indication for personalized search results).

App Links and Domain Verification

Without App Links, Android shows a disambiguation dialog ("Open via..."). With App Links, the system opens your application immediately, bypassing the dialog.

Manifest:

<intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="https" android:host="yourdomain.com" android:pathPrefix="/products/" />
</intent-filter>

android:autoVerify="true" triggers verification on install: the system requests https://yourdomain.com/.well-known/assetlinks.json. If the file is unavailable or incorrect—verification fails, the dialog returns.

assetlinks.json must contain the SHA-256 fingerprint of the APK signing certificate. Debug and release—different certificates. When using Play App Signing, use the fingerprint from Google Play Console, not the local keystore.

Common mistake: the assetlinks.json file is served with Content-Type: text/plain instead of application/json, or protected by authorization, or redirects with www. Android verification doesn't follow redirects.

Firebase App Indexing SDK

FirebaseAppIndex.getInstance(context).update(
    Indexable.Builder("Article")
        .setName(article.title)
        .setUrl("https://yourdomain.com/articles/${article.id}")
        .setDescription(article.summary)
        .put("keywords", article.tags.joinToString(","))
        .build()
)

setUrl() is the same URL as in App Links. Google indexes it and shows it in search.

Index when the user views content. For batch indexing—in a WorkManager task on first launch or content update. Don't index the entire catalog at once in onCreate()—this slows down startup.

App Indexing History. FirebaseUserActions.getInstance(context).start(action) / end(action) logs user actions for personalized Siri (Google Assistant) suggestions. Action.Builder(Action.Builder.VIEW_ACTION).setObject(title, url). Start—when opening content, End—when closing.

Handling Deep Link

class ArticleActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        handleIntent(intent)
    }

    override fun onNewIntent(intent: Intent) {
        super.onNewIntent(intent)
        handleIntent(intent)
    }

    private fun handleIntent(intent: Intent) {
        val action = intent.action
        val data = intent.data
        if (Intent.ACTION_VIEW == action && data != null) {
            val articleId = data.lastPathSegment
            viewModel.loadArticle(articleId)
        }
    }
}

onNewIntent is needed if the Activity is launched with launchMode="singleTop" or singleTask—otherwise, a repeated deep link won't be processed.

Web vs App: Content Linking

For correct Google indexing, content by URL in App Links must match web page content. The page should contain meta tags:

<link rel="alternate" href="android-app://com.yourapp/https/yourdomain.com/articles/42">

Without this link, Google may index the web version but not know about the application.

Testing

adb shell am start -a android.intent.action.VIEW \
    -d "https://yourdomain.com/products/123" com.yourapp

Check App Links verification: adb shell pm get-app-links --user cur com.yourapp—should show verified for your domain.

Google Search Console → Mobile Usability → App Indexing shows indexing status.

Timeline

App Links + basic App Indexing: 2–3 weeks. Full integration with Firebase App Indexing, batch indexing, Google Assistant actions: 4–7 weeks. Cost depends on content volume and deep link scheme complexity.