【问题标题】:How to have app links (Android) url with no "www" & "https" prefix如何拥有不带“www”和“https”前缀的应用链接(Android)网址
【发布时间】: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


    【解决方案1】:

    您可能对this 感兴趣 - 在答案中,您可以找到您需要的示例

    你也可以看看https://www.flipandroid.com/deep-link-no-funciona-en-chrome-para-android.html(但你需要翻译这个网站)

    【讨论】:

      猜你喜欢
      • 2021-02-06
      • 1970-01-01
      • 2023-04-06
      • 2016-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多