首页 > 解决方案 > 如何拥有没有“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” .

标签: androidreact-nativeios-universal-linksapplinks

解决方案


您可能对此感兴趣-如在 Answers 中,您可以找到您需要的示例。

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


推荐阅读