iOS MDM App安装/取消响应 [英] iOS MDM App Installation/Cancellation Response

查看:469
本文介绍了iOS MDM App安装/取消响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用iOS APNS方法开发了MDM服务器,并且正在将应用程序推送到移动设备上.

我希望MDM Server知道何时成功安装了应用程序,或者用户何时取消了有关应用程序安装的警报.

我发出InstallApplication命令,并且收到状态为已排队"的确认,但是我想在安装状态时进行确认. 我试图在InstallApplication命令之后发出ManagedApplicationList命令,以便可以检查现在是否已管理已安装的应用程序,从而得出该应用程序已成功安装的结论.但是由于InstallApplication命令后立即发出了此命令,因此我收到了状态提示为该命令的确认".

根据解决方案

在构建TestMDM时,我发现了这个问题.

1)InstallApplication命令得到确认,这表示电话已接收到该命令.我通过将ManagedApplicationList命令与Identifiers数组中应用程序的BundleId一起使用来解决此问题.我每隔几秒钟执行一次此请求,它返回我要安装的应用程序的状态.

2)如果用户选择不安装您的应用,则应该以UserRejected状态结束.

3)我相信,以静默方式安装应用程序的唯一方法是在受监管的设备上.

I have developed an MDM Server using the iOS APNS method and I am pushing apps to mobile devices.

I want the MDM Server to know when the App was successfully installed or when the user cancels the alert for App Installation.

I issue the InstallApplication command and I get an Acknowledgement with State as Queued but I want an acknowledgement when the State is Installed. I tried to issue an ManagedApplicationList command after the InstallApplication command so that I can check if the app installed is now managed thereby concluding that the app was successfully installed. But I get the Acknowledgement with State as Prompting for this command as this command is issued immediately after InstallApplication command.

According to Mobile Device Management Protocol Reference, there are states like - UserRejected, UpdateRejected, ManagementRejected but I never got those responses but this seems like the response I'm expecting.

1) How do I get Acknowledgement when the app was installed successfully?

2) How do I get notified when user cancels the App installation alert?

3) Is there a way to install the app without prompting an alert to the user?

解决方案

I found this issue when building TestMDM.

1) The InstallApplication command gets acknowledged, which indicats the phone received the command. I worked around this by using the ManagedApplicationList command with the BundleId of the app in the Identifiers array. I execute this request once every few seconds and it returns the state of the app I'm trying to install.

2) You should end up with a UserRejected status if the user opts to not install your app.

3) I believe the only way to silently install apps is on a Supervised device.

这篇关于iOS MDM App安装/取消响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆