I am developing an MDM solution.
I have installed a configuration profile on device. So I have all the required things like Device Token, Push Magic String, UDID of device, etc.
Now I want to send a mdm payload to the device using APNS. I am able to send a simple alert message to the device, but I need to send a mdm payload.
I am not sure how to send a plist(XML) to the device using APNS.
I am using php to send Push notifications.
Please if someone could help me how to send a mdm payload to the device.
Thanks, Manmay
prepare xml in a txt file and response it as a flow, it's ok
Actually you can't send the payload directly to the device. Here's how the delivery work :
So the APNS work just for triggering the device to connect to server and then query what command available for that device.
install iphone config utility .. create a new Configuration profile... while creating go to mobile device management tab.. we can find server url and check in url... we need not know that mdm payload cannot be send through apple push notification service.. only we can send {mdm:"push magic token"}.. first try to install mdm payload manually.. after installation the device with payload will Initially (first time) will respond to check in url sending push magic token.. device token.. and udid.. then using push magic token we can send the push notification.
then the device will poll commands through server url.. we can send commands like examples lock .. unlock.. in response (mime type : plist)and we can terminate connection by sending 200
The MDM payloads are not public available. To use mdm you must register at apple (ios-mdm@apple.com).