用 ssafari 浏览器通过 itms-services:// 协议下载安装 IOS 应用
前提必要条件:
- 支持https的站点
- 站点Apple ATS规范
- 打包好ipa文件
- ipa包名
1、制作下载链接
<a title="ios" href="itms-services://?action=download-manifest&url=https://配置文件地址/ipa.plist" download="app.ipa" target="_blank">
<span>IOS下载</span>
</a>
2、制作 ipa.plist 配置文件
<?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>https://下载服务地址/app.ipa</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>need-shine</key>
<integer>0</integer>
<key>url</key>
<string>https://下载服务地址/logo.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>包名</string>
<key>bundle-version</key>
<string>1.0</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>应用名称</string>
</dict>
</dict>
</array>
</dict>
</plist>