美文网首页
Support Universal Links/Safari跳转

Support Universal Links/Safari跳转

作者: 魈畈 | 来源:发表于2017-03-13 14:45 被阅读387次

* 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

相关文章

网友评论

      本文标题:Support Universal Links/Safari跳转

      本文链接:https://www.haomeiwen.com/subject/ozkogttx.html