iOS MDM App Installation/Cancellation Response

眉间皱痕 提交于 2019-12-11 18:46:32

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/49027114/ios-mdm-app-installation-cancellation-response

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!