gpt4 book ai didi

ios - 无论 Apple 应用程序站点关联如何,通用链接始终打开应用程序

转载 作者:行者123 更新时间:2023-11-29 05:24:48 26 4
gpt4 key购买 nike

我们已经按照描述实现了通用链接 here以便用户可以确认他们的帐户。我们最近在我们的网站上引入了一些新的 Controller /页面,我们发现无论 apple-app-site-association 文件中有什么内容,所有链接都会打开应用程序。我检查了我们的配置,没有发现问题。

添加新页面之前:

{
"applinks": {
"apps": [],
"details": [
{
"appID": "XXXXXXXX.com.mybundle.identifier",
"paths": ["*"]
}
]
}
}

添加新页面后:

{
"applinks": {
"apps": [],
"details": [
{
"appID": "XXXXXXXX.com.mybundle.identifier",
"paths": ["NOT /about/*", "NOT /home/*", "*"]
}
]
}
}

注意事项:

  • 我尝试了多种路径变化,包括“NOT/about*”或“NOT *”,但所有链接仍会打开该应用。
  • > AASA Validator返回全绿色。
  • 我在每次测试之间都进行了版本控制和卸载。

对于我们下一步可以检查什么有什么想法吗?

最佳答案

document about allowing_apps_and_websites_to_link_to_your_content 的最后一部分,它说:

Use wildcards in path strings within the paths array to specify sections of your website. For example, append * to a specific URL, such as /videos/samples/2015/, to specify all paths below /videos/samples/2015/. Use ? to match any single character, such as /photography//samples/201?/mypage. Use a standalone * to specify your entire website.

Identify an area that should not be handled by adding “NOT ” (including a space after the T) to the beginning of the path string.

因此,在第二个路径中,您同时使用NOT*,这是矛盾的。我认为你应该将其更改为:

 "paths": ["NOT /about/*", "NOT /home/*"]

或者类似的东西

 "paths": ["NOT /about/*", "NOT /home/*", "/vailddomain/*"]

我还没有测试过,但我认为这可能是正确的解决方案。

关于ios - 无论 Apple 应用程序站点关联如何,通用链接始终打开应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58272880/

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