一:有一个HTTPS的域名,在该域名下有上传到根目录的权限
二:在开发者中心中找到对应的appid,添加Associated Domains
三:Xcode中添加 添加Associated Domains,添加支持的域名,前缀必须为applinks:
比如:applinks:xiaowang.cmd.com
四:配置指定文件,创建一个json文件,文件名为apple-app-site-association
apple-app-site-association的格式如下:
{"applinks":{"apps":[],"details":[{"appID":"ASDFG1234.com.apple.wwdc","paths":["*"]}]}}
将配置好的apple-app-site-association文件上传到服务器
apple-app-site-association文件需要上传到服务器的根目录下 ,也可以在根目录中添加.well-known文件夹,将文件上传到.well-known文件夹下(.点一定不能少),对应连接分别为
https://xxx/apple-app-site-association
https://xxx/.well-known/apple-app-site-association
xxx为你服务端的域名最后可用用苹果提供的网址验证有效性:https://search.developer.apple.com/appsearch-validation-tool/
网友评论