I am using capacitor 5.7 to build a mobile app for one of our services.
There is a redirection issue when users:
- Copy-paster and follow a deeplink on Chrome
- When they open the deeplink in a new tab on Chrome
Note that in Firefox these redirections work as expected after enabling the “Open links in apps” setting
We have set up our assetlinks.json file in the following link:
https://nutrition-careacross-staging.herokuapp.com/.well-known/assetlinks.json
And our Manifest looks like this:
<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="com.careacross.bc" />
<data android:host="open" />
</intent-filter>
<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="com.careacross.bc" />
<data android:host="nutrition-careacross-staging.herokuapp.com" />
</intent-filter>
<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" />
<data android:host="nutrition-careacross-staging.herokuapp.com" />
</intent-filter>
<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="http" />
<data android:host="nutrition-careacross-staging.herokuapp.com" />
</intent-filter>
Everything seems deeplinked and correct on the Google console. Is the above behaviour expected?
Thanks in advance