更新时间:2022-12-21 11:16:29
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.