In my code below I tried to implement app indexing for Google search result as well as a deep link for some link in my website. But the problem is only app indexing is taking place and no deep linking is being done for the required link. Is Am I doing something wrong. I tested amazon.in website and they had provided app indexing as well as deep linking for their download app banner.
I had implement deep linking for https://www.website.com/mobile-apps.html, https://m.website.com/m/mobile-apps.html, https://tv.website.com/tv/mobile-apps.html
Below is my code for app indexing as well as deep linking
<activity
android:name="com.website.websiteMobileApp.MainActivity"
android:screenOrientation="portrait"
android:launchMode="singleTop">
<!-- ==================For app indexing================== -->
<intent-filter android:autoVerify="true" android:label="@string/app_name">
<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="www.website.com" />
<data android:scheme="https" android:host="m.website.com" />
<data android:scheme="https" android:host="tv.website.com" />
</intent-filter>
<!-- ==================For deep linking================== -->
<intent-filter android:autoVerify="true" android:label="@string/app_name">
<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="www.website.com" android:pathPrefix="/mobile-apps.html" />
<data android:scheme="https" android:host="m.website.in" android:pathPrefix="/m/mobile-apps.html" />
<data android:scheme="https" android:host="tv.website.com" android:pathPrefix="/tv/mobile-apps.html" />
</intent-filter>
</activity>