- 项目里面配置 applinks: 域名 eg: baidu.com
- 创建 apple-app-site-association 文件,无json等后缀名
eg: appID 构成 teamId + bundleId
javascript
{
"applinks": {
"apps": [],
"details": [
{
"appID": "2TEAM6D5.com.baidu.TEST",
"paths": ["*"]
}
]
}
}
- 上传apple-app-site-association到applinks中填写的https服务器根目录或者.well-known目录下。
如果是nginx服务器,可以配置nginx如下:
javascript
location /.well-known/apple-app-site-association {
add_header Content-Type text/plain;
root /.well-know;
index apple-app-site-association;
}
- 重新安装app,然后就可以测试