一个URL访问之后能直接打开iOS上的App,如果该程序没有安装,能够直接跳转到App Store的App下载页面。
2 3 4 5 6 7 8 9 |
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
<html>
<body>
<script>
window.location = “weixin:”;
setTimeout( function(){ window.location=”http://itunes.apple.com/us/app/wechat!/id414478124?mt=8″; } , 1500);
</script>
</body>
</html>
|
放在公网上,用Safari访问,就会看到效果:
1,如果您已经安装微信,那么会直接打开微信App。
2,如果您没有安装,那么会直接跳转到App Store的微信页面。(虽然会弹窗报错,但是1.5秒之后,还是会跳转的)
信息来自:http://blog.chukong-inc.com/index.php/2012/03/14/open_app_via_safari/