plist文件編寫,保存為ceshi.plist(這里的名字可以根據(jù)自己的喜好編寫)
<?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>
<!-- http或者h(yuǎn)ttps鏈接的ipa文件地址 -->
<string>https://xxxxxxx.com/ceshi.ipa</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<!-- http或者h(yuǎn)ttps鏈接的應(yīng)用圖標(biāo) 正常尺寸 (都用一個也行, 分辨率沒強制要求)-->
<string>https://xxxxxxx.com/icon.png</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<!-- http或者h(yuǎn)ttps鏈接的應(yīng)用圖標(biāo),最小尺寸 (都用一個也行, 分辨率沒強制要求) -->
<string>https://xxxxxxx.com/icon.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<!-- BundleID,應(yīng)用的包名 -->
<string>abc.com</string>
<key>bundle-version</key>
<!-- 版本號 -->
<string>1.0</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<!-- 安裝app時的提示名稱 -->
<string>測試應(yīng)用</string>
</dict>
</dict>
</array>
</dict>
</plist>
應(yīng)用圖標(biāo)(正常圖標(biāo)和最小圖標(biāo),用一個也可以,http/https可以訪問)
BundleID(包名)
IPA包(http / https 可以訪問)
plist文件(http / https 可以訪問)
網(wǎng)頁點擊安裝應(yīng)用
<button onclick="iosDown()"></button>
function iosDown(){
window.location.href='itms-services:///?action=download-manifest&url=https://xxxxxxx.com/ceshi.plist';
}