androidindexingdeep-linkingandroid-app-indexing

App Indexing "Open in App" doesn't work


So, I was trying to implement app indexing to allow "Open in App" feature from google search (in Chrome app).

I've implemented the following sections from google docs https://developers.google.com/app-indexing/:

  1. Add Deep Linking to your App

    <activity
        android:name=".DeepLinkActivity">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data
                android:scheme="http"
                android:host="dl.mysite.com"
                android:pathPattern="/" /> <!-- Home page -->
        </intent-filter>
    </activity>
    
  2. Connect your App

    I've verified and approved the website from Webmaster and Play console.

  3. Provide Deep Links

    <link rel="alternate" href="android-app://com.MyApp.MyApp/http/dl.mysite.com/" />
    

I've tried testing my link "android-app://com.MyApp.MyApp/http/dl.mysite.com/" in https://developers.google.com/app-indexing/webmasters/test and the link opens my app home page. However, the listing corresponding to my site in google search results (in Chrome app) has no "Open in App" function.

I'd like to have this "Open in App" function. I'd appreciate any help.


Solution

  • Answer to a similar question addresses this problem.

    App Indexing Android - "<link>" in "<head>" doesn't work

    To quote, "It'll work only from google search results page. If your website is properly indexed and appears in google search results, check if exists in the website's page source in google's cached content: http://webcache.googleusercontent.com/search?q=cache:yourwebsite.com.

    Also, you might need to move your apk to PRODUCTION if it's in BETA TESTING in Google Play Developer Console."