苹果版app下载的时候不能像安卓输出文件直接下载,下面为大家介绍一种plist下载方法
1.你的服务器必须有https协议访问
<?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://ipa下载文件访问地址qq.ipa</string> </dict> <dict> <key>kind</key> <string>display-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>图标地址http://57*57.png</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>图标地址http://57*57.png</string> </dict> </array> <key>Metadata</key> <dict> <key>bundle-identifier</key> <string>应用包名</string> <key>bundle-version</key> <string>0.0.1</string> <key>kind</key> <string>software</string> <key>subtitle</key> <string>共享e家</string> <key>title</key> <string>共享e家</string> </dict> </dict> </array> </dict> </plist>
4.页面代码https://xxx.com/pl.plist为你服务器上的plist文件
<!doctype html> <html > <head> <Meta charset="UTF-8"> <Meta name="view-port" content="width=device-width,height=device-height,initial-scale=1.0,user-scalable=0"> <title>下载</title> </head> <body> <a href="itms-services://?action=download-manifest&url=https://xxx.com/pl.plist">下载</a> </body> </html>
5.点击下载就ok了
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。