嗨在我的安卓应用程序我正在尝试实现应用程序深度链接。我发现了以下行为:
场景1:
<data
android:host=âabc.com"
android:path="/"
android:scheme="https" />
<data
android:host=âabc.com"
android:pathPrefix="/care"
android:scheme="https" />
In this case google search behaviour as follows:
If I search for **abc**
it gives me app chooser with my application listed in it.
If I search for **abc /care**
it gives me app chooser with my application listed in it.
If I go to abc.com in mobile browser it goes to mobile website
abc.com. Now in that web page if I click on web link which redirects
to abc.com/care that point it is not giving option to open my
application. I believe it should give me chooser with my application
as option.
场景2:
<data
android:host=âabc.com"
android:scheme="https" />
<data
android:host=âabc.com"
android:pathPrefix="/care"
android:scheme="https" />
In this case please check data for first deep link.
In this case google search behaviour as follows:
If I search for **abc**
it is not giving me app chooser option and directly redirects abc.com.
My expectation is it should give me app chooser with my application
option.
If I search for **abc /care**
It gives me app chooser with my application listed in it.
If I go to abc.com in mobile browser it goes to mobile website
abc.com. Now in that web page if I click on web link which redirects
to abc.com/care that point it gives me app chooser with my application
listed in it.