且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用于企业分发的自动更新的 iOS 应用程序

更新时间:2022-12-21 11:29:36

考虑获得 移动设备管理服务.这些都很贵.

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.