androiddeep-linkingandroid-deep-link

Android Deep link- Supported web addresses


I've implemented an Android deep link with a support web address but,

It's not enabled by default in the app and I don't know the reason, I should go to the app setting and enable it manually to start working as shown here:

my app deeplink.

My question is how to enable it by default when installing the app?

My 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:scheme="http" />
            <data android:scheme="https" />
            <data android:host="winwinapp.net" />
        </intent-filter>

Solution

  • This will only be enabled by default if the domain is configured properly. Documentation here: https://developer.android.com/training/app-links/verify-android-applinks.

    Summary:

    1. Upload https://winwinapp.net/.well-known/assetlinks.json to your server. (Example format in the documentation)
    2. Add scheme to your app
    3. Make sure you set android:autoVerify="true" to your link.

    This is done to prevent apps from hijacking deeplinks. For example, to prevent a malicious developer from registering facebook.com to go to their app instead of the official one.