【发布时间】:2021-11-12 00:01:45
【问题描述】:
我在使用 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”。
【问题讨论】:
标签: android react-native ios-universal-links applinks