Ionic Capacitor deeplinks not working in Android

I have an Android app I developed installed on my device which is not opened when the link is clicked (https://hivepass.app/).

I followed the guide here for Android: https://capacitorjs.com/docs/guides/deep-links and successfully used googles asset links tool to verify https://developers.google.com/digital-asset-links/tools/generator.

However the http links I specified still open in the browser not in the mobile app.

Do I have to wait a while for this to start working or is it an error somewhere and I need to start troubleshooting?

If so any suggestions on what the issue may be?

[{
  "relation": ["delegate_permission/common.handle_all_urls"],
  "target" : { "namespace": "android_app", "package_name": "nz.co.wekasolutions.myapp",
               "sha256_cert_fingerprints": ["D4:9D:..."] }
}]

AndroidManifest.xml:

 <activity
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
            android:name="nz.co.wekasolutions.hivepass.MainActivity"
            android:label="@string/title_activity_main"
            android:theme="@style/AppTheme.NoActionBarLaunch"
            android:launchMode="singleTask">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </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" android:host="hivepass.app/" />
            </intent-filter>

        </activity>

My stackoverflow: https://stackoverflow.com/questions/65571124/ionic-capacitor-deeplinks-not-working-in-android

I can’t believe how long I spent on this.

<data android:scheme="https" android:host="hivepass.app/" />

Should be

<data android:scheme="https" android:host="hivepass.app" />
2 Likes

Oh my fucking god thank you

1 Like

@wekas
Brother i am doing the same but it works till android 11 but newer versions show error instead of openiing my app they open the website and shows error 404 not found.