网页中用户点击下载按钮执行
<a href="itms-services:///?action=download-manifest&;url=https://www.atmvip.org/js/xycp.plist" >app名称</a>
https://www.atmvip.org/js/xycp.plist
是服务器中下载plst文件的地址,
plst文件去网上找模板
模板如下
<?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>(这里是IPA文件的路径, http路径就可以)</string>
<key>New item</key>
<string></string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>c(这个名字在xcode 中查看)</string>
<key>bundle-version</key>
<string>1.1(app的版本,在xcode中看)</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>(这里是APP的名称)</string>
</dict>
</dict>
</array>
</dict>
</plist>
该方法只对iphone手机系统自带浏览器有效