android - 带有 ssp 和路径的 Android IntenFilter 打开错误的路径
问题描述
我正在尝试为我的应用程序创建一些特定的深层链接,我希望应用程序在 URI 为myPath/random-number-chars-sequence/AA
but 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"
我的应用程序总是打开的,实际上应该打开浏览器。
你们能帮我找出我在这里做错了什么吗?
提前致谢!
解决方案
推荐阅读
- sql - SQL Pivot 带有值列表的多列
- python - Tensorflow 无法容纳图像列表
- python - 烧瓶`RuntimeError:在应用程序上下文之外工作。`来自中间件
- azure-functions - ARM 模板 - 在 Azure 存储 Blob 中使用 MSDeploy 和压缩代码部署函数
- reactjs - 如何将用户重定向到登录前的位置(auth0 反应)
- geometry - 如何计算以已知弦长、宽度和角度为中心点的两个矩形的面积值?
- typescript - 映射到文件夹中的所有图像
- javascript - React - 动态创建和删除列表项
- database - 在 Web 服务器上部署数据库
- javascript - window.postMessage 根据内容动态设置跨域Iframe高度