【发布时间】:2020-11-13 01:29:09
【问题描述】:
我有一个网址,例如https://www.mobilePhoneSystem.com/{user}/registerDate/{date}。所以{user} 路径前缀是动态的。我只需要处理包含registerDate 的深层链接。
我在清单中写了这样的内容
<!-- Deep linking-->
<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="/www.mobilePhoneSystem.com"
android:pathPrefix="/registerDate" />
</intent-filter>
</activity>
但它不会触发。当我在 mainfest 中添加任何用户时,例如pathPrefix=/user111/registerDate,它触发并且工作正常。但是用户是动态的。那么我该如何处理这种类型的深层链接呢?
【问题讨论】:
标签: android manifest deep-linking intentfilter