【发布时间】:2019-09-06 13:14:42
【问题描述】:
我想把所有链接看起来像这样的深层链接:
https://myapp.com/*/*/quiz.html
我该怎么做?我在我的清单中尝试了这个intent-filter,但 pathPrefix 不起作用:
<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="https"
android:host="myapp.com"
android:pathPrefix="/.*/.*/quiz\\.html"/>
</intent-filter>
没有android:pathPrefix 它可以工作,但它会打开来自https://myapp.com 的所有链接。
【问题讨论】:
标签: android deep-linking intentfilter