自动更新的iOS应用程序,用于企业分发 [英] Auto-updated iOS application for enterprise distribution
问题描述
是否可以为企业分发创建 iOS 应用程序,以便透明地更新自己?说'更新'我的意思是完全更新它的逻辑。
Is it possible to make an iOS application for enterprise distribution that updates itself transparently? Saying 'updates' I mean completely updating its logic.
这种方法的一种可能用途是维护远程服务的自助服务亭(iPad)。
A possible usage of this approach is a self-service kiosk (iPad) that is maintained remotelly.
直接更新应用程序二进制文件是不可能的,但我看到了一些可能性:
It's not possible to update application binaries directly, but I see some possibilities:
- 应用程序有一个UIWebView,逻辑是用HTML5实现的。但我们无法使用可在本机应用程序中使用的大多数硬件特定功能。
- 一些允许使用本机应用程序功能的多平台框架(可能是基于HTML5的)动态编译或解释。
- 越狱?
什么是真正有用的方法这些?
推荐答案
Consider getting a mobile device management service. Those are pricey.
或者:
首先,启用无线分配。与Apple合作需要300美元/年的企业协议。使用应用程序的IPA存档和描述性PLIST设置一个网站。
First, enable over-the-air distribution. It will take $300/year enterprise agreement with Apple. Set up a website with the app's IPA archive and descriptive PLIST.
然后在应用启动时编写一个回拨HTTP请求。您可以拉/解同一个描述最新版本的PLIST;它有一个捆绑版本。将其与当前运行的捆绑包的版本进行比较。
Then code a call-home HTTP request on app startup. You may pull/parse the same PLIST that describes the latest version; it has a bundle version in it. Compare that to the version of the currently running bundle.
当检测到新版本时,应用程序将关闭,打开下载页面上的浏览器。以更软的方式,只是通知用户升级可用。
When a new version is detected, the app shuts down, opens the browser on the download page. In a softer manner, just notifies the user that an upgrade is available.
我从未尝试直接链接到应用程序的下载包,但试一试。在完美的世界中,Safari会打开并询问你想要下载MyApp吗?马上。在一个不太完美的世界中,用户必须单击一个链接然后同意下载。
I've never tried linking directly to the app's download package, but give it a try. In a perfect world, Safari would open up and ask "Do you want do download MyApp?" right away. In a not so perfect world, the user would have to click a link and then agree to download.
这篇关于自动更新的iOS应用程序,用于企业分发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!