iam*_*end 5 android deep-linking
我在我的 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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
355 次 |
| 最近记录: |