通过 itms-services 协议下载安装 IOS 应用
·
用 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>
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐



所有评论(0)