越獄的 iPhone、iPad 經過網站實現一鍵安裝 ipa 格式的 APP 應用

一、已經越獄的 iPhone、iPad 設備,當經過其自帶的 safari 瀏覽器訪問 ipa 應用下載網站時,利用 itms-services 協議,能夠一鍵安裝 ipa 文件的 iOS 應用,例如:javascript

<a href="itms-services://?action=download-manifest&url=http://blog.s135.com/demo/ios/jhsmyt.plist">經過越獄的iOS設備瀏覽器訪問本頁,點這兒一鍵安裝APP應用。</a>

二、jhsmyt.plist 的內容以下html

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>items</key>
   <array>
       <dict>
           <key>assets</key>
           <array>
               <dict>
                   <key>kind</key>
                   <string>software-package</string>
                   <key>url</key>
                   <string>http://blog.s135.com/demo/ios/jhsmyt.ipa</string>
               </dict>
               <dict>
                   <key>kind</key>
                   <string>display-image</string>
                   <key>needs-shine</key>
                   <true/>
                   <key>url</key>
                   <string>http://blog.s135.com/demo/ios/jhsmyt_logo.png</string>
               </dict>
	       <dict>
                   <key>kind</key>
                   <string>full-size-image</string>
                   <key>needs-shine</key>
                   <true/>
                   <key>url</key>
                   <string>http://blog.s135.com/demo/ios/jhsmyt_logo.png</string>
               </dict>
           </array><key>metadata</key>
           <dict>
               <key>bundle-identifier</key>
               <string>com.yijia.juhuasuan</string>
               <key>bundle-version</key>
               <string>1.0.0</string>
               <key>kind</key>
               <string>software</string>
               <key>subtitle</key>
               <string>聚划算每一天</string>
               <key>title</key>
               <string>聚划算每一天</string>
           </dict>
       </dict>
   </array>
</dict>
</plist>

須要修改之處:

點擊在新窗口中瀏覽此圖片java

三、若是經過 iPhone、iPad 上的二維碼掃描軟件,還能夠實現相似 Android 系統的掃描二維碼下載 app 應用:
二維碼內的網址地址爲 http://blog.s135.com/demo/ios/autodown.htm 內容以下:ios

<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>
相關文章
相關標籤/搜索