深层链接架构和路径前缀行为问题

时间:2018-12-27 16:48:00

标签: android applinks android-deep-link

嗨,在我的Android应用程序中,我正在尝试实现应用程序深层链接。我发现以下行为:

方案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.

这两种方案的工作方式都不同。对我而言,它的预期行为应该是其中列出了我的应用程序的应用程序选择器。我是否缺少任何东西,或者这是预期的行为?

0 个答案:

没有答案