简体   繁体   English

Android 深层链接不适用于 https

[英]Android Deep Linking not working with https

Android deep linking is not working with https..But it works with http . Android 深层链接不适用于 https ......但它适用于 http 。

    <intent-filter>
        <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="www.test.uz" />

    </intent-filter>

In your code you are adding tag separately for scheme and host properties.在您的代码中,您分别为方案主机属性添加标签。 You need to add你需要添加tag once and add both scheme and host properties.标记一次并添加方案主机属性。 in the same tag.在同一个标​​签中。

This is a valid way .这是一个有效的方法

scheme and host properties.方案主机属性。

<intent-filter>
    <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" 
        android:host="www.test.uz" />

</intent-filter>

I found a solution from github.com.我从 github.com 找到了一个解决方案。

<data android:scheme="https"
    android:host="test.uz"/>

just removed www.刚刚删除了www。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM