【问题标题】:Android intent filter for a URL that ends with the given String以给定字符串结尾的 URL 的 Android 意图过滤器
【发布时间】:2015-02-25 10:48:55
【问题描述】:

我正在尝试打开应用程序以获取如下所示的链接 -

http://www.somesite.com/abcd.html?defg&opener=mail

我试过了(不起作用):

<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:host="www.somesite.com"                    
                    android:scheme="http"
                    android:pathPattern=".*opener=mail" />

            </intent-filter>

出于测试目的,它可以在没有为包含该主机的任何站点添加 pathPattern 的情况下工作,但我需要它仅适用于这个以“opener=mail”结尾的站点。

【问题讨论】:

标签: android android-manifest intentfilter deep-linking


【解决方案1】:

我发现了问题,Android 看不到参数或查询字符串,因为这里已经回答了 - Match HTTP parameters in URL with Android Intent Filters

【讨论】:

    猜你喜欢
    • 2019-09-13
    • 2017-07-28
    • 1970-01-01
    • 2020-09-24
    • 2022-08-15
    • 2019-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多