简体   繁体   English

如何在没有iOS安装确认的情况下安装企业应用

[英]how to install an enterprise app without having installation confirmation in iOS

I have a requirement to develop an iOS app(installer app) that can be used to download & install other enterprise iOS apps.The scenario is,Once I have installed the installer app,the server will send silent push notifications to the app.Once the push notification reached the app,it should automatically download & install the corresponding enterprise app from the server.I have uploaded sample enterprise applications to the server and tried to initiate them using 我需要开发可用于下载和安装其他企业iOS应用程序的iOS应用程序(安装程序应用程序)。方案是,一旦安装了安装程序应用程序,服务器将向应用程序发送静默推送通知。推送通知到达应用程序后,它将自动从服务器下载并安装相应的企业应用程序。我已将示例企业应用程序上载到服务器,并尝试使用来启动它们

[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"itms-services://?action=download-manifest&url=serveraddress/application.plist"]];

Using this functionality anyways,I can download & install the other app but it asks user's permission for installing the app.Is there any work around to skip this prompting and directly install the app? 无论如何使用此功能,我可以下载并安装另一个应用程序,但它会征求用户的许可以安装该应用程序。是否可以绕过此提示并直接安装该应用程序?

Also is there anyway to initiate the above statement,even if app is not in the iOS dashboard(minimized) once the push notification is obtained. 无论如何,一旦获得推送通知,即使app不在iOS仪表板中(已最小化),也可以启动上述语句。

To answer your questions, an itms-services request will always ask the user permission. 为了回答您的问题,itms-services请求将始终询问用户权限。 The install modal is being generated by a system call and not your app, so unfortunately there's no cutesy way of using (for example) the KIF framework to simulate a button push in the confirmation dialog. 安装模式是由系统调用而不是您的应用程序生成的,因此,不幸的是,没有使用(例如)KIF框架模拟确认对话框中的按钮按下的可爱方法。 There is currently no way to initiate an itms-services request when the app is in the background, the system request isn't queued, it's ignored because the app isn't in the foreground. 当应用程序在后台,系统请求未排队,由于应用程序不在前台而被忽略时,当前无法启动itms-services请求。 iOS7 introduced the ability for a forced install capability for MDMs, which I believe can be a silent install. iOS7引入了强制安装MDM的功能,我认为这可以是无提示安装。 I haven't had a chance to play around with iOS9 much yet, but I doubt that it includes silent install without an MDM. 我还没有机会尝试使用iOS9,但是我怀疑它是否包含没有MDM的静默安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM