Universal Links可以让用户顺畅的从网页跳转到已安装的应用内,但并不是所有页面都需要跳转,当有页面需要禁止跳转时,以下方法应该会起到作用。
修改apple-app-site-association文件内容
*号代表全部跳转
NOT 代表这些页面不跳转
NOT /host/*代表路径以host开头的页面全部不跳转
{
"applinks": {
"apps": [],
"details": [
{
"appID": "公司的APPid",
"paths": [
"*",
"NOT /login/",
"NOT /login/*",
"NOT /userinfo/",
"NOT /userinfo/*",
"NOT /three/",
"NOT /three/*",
"NOT /host/",
"NOT /host/*"
]
}
]
}
}