Question: how mdm works in ios?
Answer: In MDM protocol, the server does not push commands to the device. Instead, the server uses Apple Push Notification Service (APNS) to notify the device that the new commands are available. Once device receives push notification, it queries MDM server for commands, executes them and sends the results back to MDM server.