【发布时间】:2015-10-23 15:45:07
【问题描述】:
我已经在我的 Android 应用上启用了深度链接,它运行良好。
但是,我希望意图过滤器仅侦听特定的pathPrefix,即http(s)://(www.)mydomain.com/e,而不是任何其他pathPrefix。
这可能吗?我将我的意图过滤器代码附加到AndroidManifest.xml
<intent-filter android:label="My App Name">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http"
android:host="www.domain.com"
android:pathPrefix="/e" />
<data android:scheme="http"
android:host="mydomain.com"
android:pathPrefix="/e" />
<data android:scheme="https"
android:host="www.mydomain.com"
android:pathPrefix="/e" />
<data android:scheme="https"
android:host="mydomain.com"
android:pathPrefix="/e" />
</intent-filter>
【问题讨论】:
标签: android deep-linking