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

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

问题描述

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

我希望 MDM 服务器知道应用程序何时成功安装或用户何时取消应用程序安装提醒.

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

根据移动设备管理协议参考,有像 - UserRejected、UpdateRejected、ManagementRejected 这样的状态,但我从来没有得到这些响应,但这似乎是我期待的响应.>

1) 应用安装成功后如何获得确认?

2) 如何在用户取消应用安装提醒时收到通知?

3) 有没有办法在不向用户提示警报的情况下安装应用程序?

解决方案

我在构建 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 应用安装/取消响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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