I've followed the docs for adding deeplink where we use https://mydomain.co/app or https://mydomain.co/app/details, etc to navigate to the app. So I've updated the manifest for this:
<intent-filter android:autoVerify="true">
<data
android:host="mydomain.co"
android:pathPrefix="/app"
android:scheme="https" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Generated the Digital Asset Links json file and added to the domain https://mydomain.co/.well-known/assetlinks.json
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "co.myapp.app",
"sha256_cert_fingerprints":
["redacted:key"]
}
}
]
So when I test using adb
command (ex. adb shell am start -d "https://mydomain.co/app/profile/edit_profile"
)
it works perfectly but when I try using the link externally, it opens chrome and gives me 403. I'm not sure what I'm missing or what's wrong. Can somebody help me? Thanks in advance!