android - 如何拥有没有“www”和“https”前缀的应用链接(Android)网址
问题描述
我在使用 React native 构建的 android 应用程序上有一个可用的应用程序链接功能。问题是当前链接看起来像这样https://www.example.xyz/something/并且以下是用于相同的意图过滤器
<data android:scheme="https"
android:host="www.example.xyz"
android:pathPrefix="/something"
/>
点击上面给出的链接,它会打开应用程序。但我想知道如何从应用程序链接中删除前缀“www”和“https”,以便它仍然打开应用程序。我试过从上面提到的标签中删除“www”和“https”,但它所做的只是不打开应用程序。我浏览了这里的文档https://developer.android.com/training/app-links/deep-linking 没有提到如何做到这一点,实际上那里提到的所有示例链接都有“www” .
解决方案
您可能对此感兴趣-如在 Answers 中,您可以找到您需要的示例。
你也可以看看https://www.flipandroid.com/deep-link-no-funciona-en-chrome-para-android.html(但你需要翻译这个网站)
推荐阅读
- apache-kafka - Telegraf x509 输入以监控 Kafka SSL 端点
- html - 如何从 iFrame 中显示全屏覆盖?
- c# - 如何使外部程序窗口高于屏幕尺寸?
- django - 在 uwsgi 2.0.18 和 python 3.6.9 中无法使用编码错误启动 uwsgi
- java - Gradle 下载不需要的依赖项
- python - 是否可以在不使用 Else 的情况下仅使用 Try 或使用条件来捕获错误并执行代码?
- python - 有没有办法用单索引数据帧划分多索引数据帧?
- docker - 将 Flutter ui 测试与 docker 集成:在 headless chrome 上进行驱动测试
- python - 关于字符串索引的简单Python问题
- apache-spark - 无法将 Spark 作为 Hive 执行引擎