Universa Link(通用链接) ios 跳转应用商店 处理办法
Universa Link(通用链接)ios 跳转应用商店 处理办法
·
唤端技术
URL Scheme(通用)
直接通过window.location.href跳转
ex: window.location.href = ‘zhihu://’
Universal Link (iOS)
联系ios开发人员配置appid(参考文献:https://www.jianshu.com/p/f1c97d0d0d22)
创建一个无后缀文件 apple-app-site-association
{
"applinks": {
"apps": [],
"details": [ {
"appID": "xxxxxxxxx.xxxxxxx.xxxxxx",
"paths": ["*"]
} ] }
}
上传此文件到服务器根目录 路径/apple-app-site-association 指向此文件(域名需跨域 否则浏览器视为统一路径不会跳转app)
web端判断 ios&Android 使用 window.location 跳转此链接
服务器nginx页面判断进入本页面 跳转App Store (如果本地有app就跳转 如果进入本页面说明未跳转成功 所以需要跳转App Store)
更多推荐
所有评论(0)