即使applinks方案有效,如何防止打开应用程序?

时间:2019-06-21 06:56:25

标签: android applinks android-app-links

我定义了使用HTTP URL打开应用程序内容的意图过滤器。

     <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.mysite.com"
                android:pathPrefix="/category/subcategory" />
        </intent-filter>

我通过托管Digital Asset Links JSON文件声明了网站与意图过滤器之间的关系。

当我单击Google搜索结果上的链接时,系统成功将这些URL意图路由到我的应用程序。

当我在浏览器上启动www.mysite.com时,如果用户单击与架构匹配的链接,则该应用程序正在打开。它必须在浏览器上继续。 我想分开浏览器流和Google搜索或共享链接流。

即使方案有效,如何防止捕获应用链接?我只想在搜索结果和共享链接时进行路由。

0 个答案:

没有答案