在线html转ipa,iphone在线安装 ipa 应用:利用 itms-services 协议实现 iOS 应用程序在线安装功能...
越獄后的 ?iOS ?可以實(shí)現(xiàn)像企業(yè)證書分發(fā)程序那樣通過(guò)訪問(wèn)網(wǎng)頁(yè)點(diǎn)擊按鈕一鍵安裝APP。
先決條件:
已越獄(Jailbreak)
越獄后已安裝 Appsync
步驟:
1. 在 html 頁(yè)面加入類似如下鏈接內(nèi)容(url中的 lxxh.plist 就是下面新建的 lxxh.plist 文件路徑):
點(diǎn)此安裝
2. 新建 lxxh.plist 文件,內(nèi)容如下(修改內(nèi)容中4個(gè)注釋點(diǎn)):
items
assets
kind
software-package
url
http://lxxh.lzw.me/pages/lxxh/ios/lxxh-latest.ipa
kind
display-image
needs-shine
url
http://lxxh.lzw.me/pages/lxxh/webapp/img/icon/57.png
metadata
bundle-identifier
com.sinaapp.SAElzwmeapp
bundle-version
1.0
kind
software
subtitle
lzw.me
title
離線笑話
3.訪問(wèn)該html頁(yè)面點(diǎn)擊“點(diǎn)此安裝”測(cè)試。
附:iOS 7.1下 itms-services 在線安裝失敗的解決方法
IOS 7.1 修改了manifest.plist文件的訪問(wèn)協(xié)議,之前可以通過(guò)http協(xié)議訪問(wèn),在iOS 7.1之后必須使用https協(xié)議方式訪問(wèn)。
比如之前的鏈接代碼為:
itms-services://?action=download-manifest&url=http://example.com/manifest.plist
在iOS 7.1之后,就需要修改為:
itms-services://?action=download-manifest&url=https://example.com/manifest.plist
需要一個(gè)SSL證書才能夠?qū)崿F(xiàn)在線安裝ipa文件的功能。
相關(guān)參考
http://blog.csdn.net/bihailantian1988/article/details/12973507
http://blog.sqstudio.com/other/ios/955.html
總結(jié)
以上是生活随笔為你收集整理的在线html转ipa,iphone在线安装 ipa 应用:利用 itms-services 协议实现 iOS 应用程序在线安装功能...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: python2中xrange比range
- 下一篇: html5后代选择符,css选择符有哪些