schemes需要在源码视图中配置,需要注意的是 安卓和ios有区别
1.安卓
"android" : { "schemes" : [ "zidingyi" ],
}
2.ios
"ios" : { "urltypes" : [ { "urlidentifier" : "xxx", //自定义一般为域名反着 com.baidu "urlschemes" : [ "zidingyi" ] } ], }
3.从h5打开指定的app
window.location.href = 'xxxx://' + "?path=" +xxxx
标签:schemes,xxxx,zidingyi,app,ios,h5 From: https://www.cnblogs.com/qdjj/p/17146910.html