简体   繁体   English

APPLE APP SITE ASSOCIATION (AASA) 故障排除 - iOS - Wordpress 托管站点

[英]APPLE APP SITE ASSOCIATION (AASA) Troubleshooting - iOS - Wordpress hosted site

I'm trying to set up AASA for my app and am testing on a Wordpress hosted site ( https://toycollectorapp.com )我正在尝试为我的应用程序设置 AASA 并在 Wordpress 托管站点上进行测试( https://toycollectorapp.com

I have uploaded the AASA file to the.well-known directory and added an .htaccess file so that Wordpress will apply the mime/JSON type to the file.我已将 AASA 文件上传到 .well-known 目录并添加了 .htaccess 文件,以便 Wordpress 将 mime/JSON 类型应用于该文件。 The page validates using the Branch IO validator - https://branch.io/resources/aasa-validator/该页面使用分支 IO 验证器进行验证 - https://branch.io/resources/aasa-validator/

I've added the entitlements in Xcode (applinks:toycollectorapp.com) and added the associated domain capability at developer.apple.com for我在 Xcode (applinks:toycollectorapp.com) 中添加了权利,并在 developer.apple.com 中添加了相关的域功能

Even with all that, when I visit the site with the application installed I am not prompted to open the app... the site and application don't seem to be talking with each other... Any advice on what I could troubleshoot?尽管如此,当我访问安装了应用程序的站点时,系统不会提示我打开应用程序......站点和应用程序似乎没有相互交谈......关于我可以解决什么问题的任何建议? Is it an issue with Wordpress? Wordpress 有问题吗?

It seems like this should be easy, so I'm not sure what I am missing... any advice would be appreciated.看起来这应该很容易,所以我不确定我错过了什么......任何建议都将不胜感激。 Zack扎克

Try using Apple's validation tool: https://search.developer.apple.com/appsearch-validation-tool .尝试使用 Apple 的验证工具: https://search.developer.apple.com/appsearch-validation-tool I did a quick search for toycollectorapp.com and the validator could not reach your AASA.我快速搜索了toycollectorapp.com ,验证器无法访问您的 AASA。

Beyond that, you should also make sure the provisioning profile you're using contains the entitlement you added.除此之外,您还应该确保您使用的配置文件包含您添加的权利。 If you're managing code signing manually, you need to re-generate a new one after you add a new capability to your App ID.如果您手动管理代码签名,则需要在向 App ID 添加新功能后重新生成一个新功能。

I went back in and added the old format with the apps:[] and appID and now it works, Even though the Apple WWDC 2020 says those items are no longer necessary: I guess they are!我返回并添加了带有应用程序的旧格式:[] 和 appID,现在它可以工作了,尽管 Apple WWDC 2020 说这些项目不再需要:我想它们是! This formatting worked:这种格式有效:

{ {

"applinks": { “应用链接”:{

"apps": [],
"details": [
{
  "appID": "xxxxxxxx.com.threebrothersapps.hobbydbvision",
  "paths": ["/*"],
  "appID": "xxxxxxxx.com.threebrothersapps.hobbydbvision",
  "paths": ["/*"],
  "appIDs": ["xxxxxxx.com.threebrothersapps.hobbydbvision", "xxxxxxx.com.threebrothersapps.hobbydbvision"],
  "components": [
  {
"/": "/*"
  },
  {
     "/": "/support/home/*"
  }
  ]
}
]

} } } }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM