美文网首页
浏览器调到app

浏览器调到app

作者: 今天天气很好我心情也很好 | 来源:发表于2019-06-24 15:18 被阅读0次

要这么写

<intent-filter tools:ignore="AppLinkUrlError">

                <category android:name="android.intent.category.BROWSABLE" />

                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />

                <data

                    android:host="com.nide.baoming"

                    android:pathPattern="/product"

                    android:scheme="abc" />

            </intent-filter>

这样写了之后在网页中加入一个调转到a'p'p超链接按钮。就可以了。

<a href="abc://com.nide.baoming" >jump</a>

在UC 上测试是好的。

相关文章

网友评论

      本文标题:浏览器调到app

      本文链接:https://www.haomeiwen.com/subject/jlhoqctx.html