* Universal Links仅适用于iOS 9 +
* 有一个注册过的域名且支持HTTPS
1,TARGETS-Capabilites-Associated Domains,添加域名
Associated Domains
2,https://developer.apple.com 中修改 Identifiers-iOS App IDs 配置信息,打开Associated Domains 权限
https://developer.apple.com/account/ios/identifier/bundle
3,权限设置成功后,<1>中的错误消失
Associated Domains
4,上传 apple-app-site-association 文件,到域名根目录
TeamID是开发者账号中的Account Summary中的Team ID
5,https://mallcoo.onelink.me/apple-app-site-association 浏览器打开
mallcoo.onelink.me是前面步骤配置好的域名;获取到正常的JSON 数据则配置成功
配置成功
6,AppDelegate中实现相关代理方法
7,在Safari中输入上面配置的域名“mallcoo.onelink.me” 则页面顶部显示可以跳转相应APP的功能
第二种方法,通过JS 和 URL Schemes 跳转指定APP
JS 代码
参考链接: http://www.521travel.com/index.php?s=/news/index/detail/id/25.html