For Android 12 and 13, We recently enabled App link for deep link navigation. We created the assetlinks.json as mentioned here
Code from android 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:host="host-name" />
<data android:pathPrefix="/path"/>
<data android:scheme="https" />
</intent-filter>
But unfortunately, everytime the deeplink to the app is accessed, the link opens in chrome instead of re-directing to the app. Also in the app info, our domain is always disabled app-info
When I run this command adb shell pm get-app-links <package_name>
I get this,
ID: <id>
Signatures: [*]
Domain verification state:
<my_domain>: 1024
I am unable to figure out why it returns 1024. In google play console, this is the content of the assetLinks.json
{"relation":["delegate_permission/common.handle_all_urls"],"target":{"namespace":"android_app","package_name":"<package-name>","sha256_cert_fingerprints":["<finger_print>"]}}]
I have tried all the steps in these pages
But none of the fixes mentioned here has worked for me. This is creating a huge production incident.
In this post, they are saying the disabling is expected. But I have checked other apps like LinkedIn and there is no switch button beside the supported links.
I have verified the my local SHA-256 and google play app signing SHA-256 are the same. Still the domain appears disabled. Manually asking the user to enable doesnt seem like a good user experience. How can we enable this automatically?