Hello,
I try to setup the applinks for the app with Ionic/Angular v7.2.0 and Capacitor v5.2.2.
For IOS, it works fine with the file apple-app-site-association
and the capability Associated Domains
. So, when I click on a link to the associated domain, the app opens.
For Android, however, it does not work and so, when I click on a link to the associated domain, the browser opens and goes to the website. (I have tried with Xiaomi Redmi Note 11 with Android 13)
Could you help me?
For the settings, I have followed the instructions here and defined this:
- In AndroidManifest.xml
<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="app.myassociateddomain.com" />
</intent-filter>
- At the root of the domain directory, I have added a folder
.well-known
- I have generated a new SHA256 certificate and copy the generated fingerprints (75:B2:2…).
- In the folder
.well-known
, I have added a new fileassetlinks.json
with this content:
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target" : {
"namespace": "android_app",
"package_name": "com.mypackage.name",
"sha256_cert_fingerprints": ["75:B2:2…"]
}
}]