我的清单文件中需要多个主机来链接应用程序,但这不起作用。如果我在同一个意图过滤器中添加另一个带有另一个主机的数据标签..之前工作的数据标签不再工作。多个意图过滤器也是如此。如果我尝试为该其他主机添加另一个意图过滤器,则第一台主机(和第二台主机)不起作用。
在这里你可以看到我做了什么:
AndroidManifest.xml
<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:host="www.host1.com"
android:pathPattern="/path/.*"
android:scheme="https" />
</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:host="www.host2.com"
android:pathPattern="/path/.*"
android:scheme="https" />
</intent-filter>
如果我使用 host2 删除意图过滤器,host1 将起作用!
有任何想法吗?