首页 > 上网技巧 > ios如何在网页点击直接下载安装app 无需跳转到A...

ios如何在网页点击直接下载安装app 无需跳转到AppStore

时间:2016-06-03 11:52 作者:QQ地带 我要评论

首先看代码:

  1. <a href="itms-services://?action=download-manifest&url=https://www.oicqzone.com/2xxxyz/U/raw/master/manifest.plist">直接安装app</a> 

后面的plist文件

 

  1. <?xml version="1.0" encoding="UTF-8"?> 
  2. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
  3. <plist version="1.0"> 
  4. <dict> 
  5.     <key>items</key> 
  6.     <array> 
  7.         <dict> 
  8.             <key>assets</key> 
  9.             <array> 
  10.                 <dict> 
  11.                     <key>kind</key> 
  12.                     <string>software-package</string> 
  13.                     <key>url</key> 
  14.                     <string>https://www.oicqzone.com/2xxxyz/U/raw/master/WholeNet.ipa</string> 
  15.                 </dict> 
  16.                 <dict> 
  17.                     <key>kind</key> 
  18.                     <string>display-image</string> 
  19.                     <key>url</key> 
  20.                     <string>https://www.oicqzone.com/2xxxyz/U/raw/master/logo180.png</string> 
  21.                 </dict> 
  22.                 <dict> 
  23.                     <key>kind</key> 
  24.                     <string>full-size-image</string> 
  25.                     <key>url</key> 
  26.                     <string>https://www.oicqzone.com/2xxxyz/U/raw/master/logo181.png</string> 
  27.                 </dict> 
  28.             </array> 
  29.             <key>metadata</key> 
  30.             <dict> 
  31.                 <key>bundle-identifier</key> 
  32.                 <string>com.company.wholeNet4</string> 
  33.                 <key>bundle-version</key> 
  34.                 <string>2.5</string> 
  35.                 <key>kind</key> 
  36.                 <string>software</string> 
  37.                 <key>title</key> 
  38.                 <string>WholeNet</string> 
  39.             </dict> 
  40.         </dict> 
  41.     </array> 
  42. </dict> 
  43. </plist> 

 

 ipa大家可以放在服务器,或者托管在git上。


标签: iOS
顶一下
(75)
100%
踩一下
(0)
0%

Google提供的广告