【问题标题】:IOS Universal Linking not working, still opens websiteIOS通用链接不起作用,仍然打开网站
【发布时间】:2021-06-15 08:40:28
【问题描述】:

我正在尝试将通用链接添加到我正在开发的应用程序中。我在开发帐户上设置了所有正确的设置和 URL。我正在使用 React Native 和 React Native Router Flux。路由器设置为domainname.me/flow/:flow_id。

对于苹果 JSON 文件,我应该在路径中使用通配符“*”还是应该使用“/flow”

我必须在关联域下的域

applinks:appname.me (domain is .me not .com)
applinks:www.appname.me 

我有下面的 apple-app-site-associatifile。

{
  "applinks": {
    "apps": [],
    "details": [
      {
        "appID": "<teamID>.me.appname.ios",
        "paths": [
          "/flow/"          
        ]
      }
    ]
  }
}

【问题讨论】:

  • 我不确定这是否会对您有所帮助,但值得一试,也请在 xcode 中的 applinks 中添加 http:// 部分中的方案。
  • 所以在关联域中的域下应该是 applinks:domainanme.me?
  • 试过了,但并没有什么不同。它仍在加载网页,甚至没有要求打开应用程序
  • 您确定托管的文件是可访问的并且文件名是正确的吗?
  • 在这方面一切都是正确的,我看到人们在模拟器上启动它们时遇到问题。物理设备更好还是有办法让他们在模拟器上工作?

标签: ios react-native deep-linking ios-universal-links react-native-router-flux


【解决方案1】:

这是一个模拟器问题。出于某种原因,Universal Links 不会在那里打开,而是在物理设备上打开。

【讨论】:

    猜你喜欢
    • 2012-10-01
    • 1970-01-01
    • 2017-04-06
    • 1970-01-01
    • 2016-01-28
    • 1970-01-01
    • 1970-01-01
    • 2016-05-09
    • 2018-04-11
    相关资源
    最近更新 更多