gpt4 book ai didi

iOS apple-app-site-association - 它是否需要离开我服务器的根目录?

转载 作者:行者123 更新时间:2023-12-01 19:30:57 25 4
gpt4 key购买 nike

我正在尝试为我的 Capacitor 应用程序配置深度链接,并按照此处的说明进行操作:https://capacitorjs.com/docs/guides/deep-links . Apple 提到了这一点

"The file needs to be accessible via HTTPS—without any redirects—athttps:///apple-app-site-association orhttps:///.well-known/apple-app-site-association. Next, youneed to handle universal links in your app"

"Upload the apple-app-site-association file to your HTTPS web server. You can place the file at the root of your server or in the .well-known subdirectory."

https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html


我的问题是:.well-known 目录绝对需要离开我服务器的根目录吗?

我们使用 Google Cloud 和 Kubernetes,我需要链接的网站不在 domain.com,它在 domain.com/myapp。我需要能够在 domain.com/myapp/.well-known/apple-app-site-association 提供 apple-site-association 文件。

但是,当我在以下位置提供关联文件时:

domain.com/myapp/.well-known/apple-app-site-association

我得到:

"Error cannot fetch app site association" from https://search.developer.apple.com/appsearch-validation-tool"

我已经在设备上测试了与我的应用程序的深度链接(只是为了查看验证器是否有误),但我总是路由到我们的网站而不是我们的应用程序。

最佳答案

是的,.well-known 必须离开根。它不能在 /myapp 下,您不能使用重定向。

您可以在站点关联文件中指定路径,因此您使用的通用链接可以包含/myApp 路径。

关于iOS apple-app-site-association - 它是否需要离开我服务器的根目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62841304/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com