Android应用都可以实现通过扫描二维码下载安装,这里介绍一种可以通过越狱的iPhone或者iPad扫描按章ipa文件应用的方法:
1、建立一个html文件
autodown.htm:
<html>
<head>
<title>iOS 越狱版安装</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<script type="text/javascript">
function doLocation(url)
{
var a = document.createElement("a");
if(!a.click) {
window.location = url;
return;
}
a.setAttribute("href", url);
a.style.display = "none";
document.body.appendChild(a);
a.click();
}
</script>
</head>
<body >
<script type="text/javascript">
doLocation('itms-services://?action=download-manifest&url=http://blog.s135.com/demo/ios/jhsmyt.plist');
</script>
</body>
</html>
这里的jhsmyt.plist文件就如前文《越狱iPhone通过网站实现一键安装ipa格式应用的方法》里面所讲的方法。
然后将下载地址生成二维码,就可以实现扫描下载并安装了。