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