首页 > 解决方案 > 带有 ssp 和路径的 Android IntenFilter 打开错误的路径

问题描述

我正在尝试为我的应用程序创建一些特定的深层链接,我希望应用程序在 URI 为myPath/random-number-chars-sequence/AAbut NOT时打开myPath/random-number-chars-sequence/BB。我这样做的方式是在我的AndroidManifest.xml文件中:

                    <data
                        android:host="*.myhost.com"
                        android:pathPrefix="/myPath"
                        android:pathPattern="/myPath/.*/AA"
                        android:sspPattern="/AA"
                        android:scheme="https" />

为了测试,我正在做:

 adb shell am start -W -a android.intent.action.VIEW -d "https://test.myhost.com/myPath/fje85hd--akf9-hf67-3929sfhjkx9/BB"

我的应用程序总是打开的,实际上应该打开浏览器。

你们能帮我找出我在这里做错了什么吗?

提前致谢!

标签: androidandroid-manifestdeep-linkingandroid-deep-link

解决方案


推荐阅读