14

I have an iOS enterprise app that we are wirelessly distributing to our devices. Currently the app polls our server once a day to see if there is an app update. If there is, we try to install it by having the app call the following code:

        NSURL *installUrl = [NSURL URLWithString:[NSString stringWithFormat:@"itms-services://?action=download-manifest&url=%@", plistUrl]];
        [[UIApplication sharedApplication] openURL:installUrl];

This causes the app to prompt the user with an alert dialog to install the update. If they click install, the app closes and the update is downloaded and installed.

I am wondering if there is anything for enterprise apps for iOS 7 similar to the AppStore's automatic updates? I would like to be able to update our app without the user having to press an update button and be able to update at a time when the user won't have to wait for it to install.

4

3 回答 3

9

这些问题的答案会给你一个正确的答案:

虽然Stephen McMahon有一个解决方案,但我没有测试它。

http://www.techhui.com/profiles/blogs/auto-updating-enterprise-or-ad-hoc-ios-applications

于 2014-03-30T18:20:11.397 回答
1

编辑:我现在意识到我误读了简报,OP 要求后台自动更新。企业应用程序不可能,但在第一次打开时(相对)很容易做到。我将把它留在这里,因为这是我发现这个问题时要寻找的信息。


这是我为我的项目所做的。我根据我们的内部分发证书以企业模式导出应用程序,并将文件夹上传到公共网络空间。让您的应用检查更新(使用的方法是开发人员的练习),当检测到更新时,打开 Web 浏览器访问如下所示的 URL:

itms-services://?action=download-manifest&url=https://www.yourcompany.com/path/to/manifest.plist

您将看到一个与以下屏幕不同的屏幕:

安装企业应用程序的确认图像

如果您使用 Cordova/PhoneGap 开发您的应用程序,请确保为这些类型的应用程序包含允许导航规则。

于 2018-07-30T00:46:01.500 回答
0

抱歉,无法在后台下载企业应用程序的更新。

于 2013-11-07T18:01:27.597 回答