Sending mdm payload

2019-06-10 08:28发布

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

4条回答
姐就是有狂的资本
2楼-- · 2019-06-10 08:42

prepare xml in a txt file and response it as a flow, it's ok

查看更多
对你真心纯属浪费
3楼-- · 2019-06-10 08:51

Actually you can't send the payload directly to the device. Here's how the delivery work :

  1. MDM Server triggered APNS
  2. Device receive the APNS and send idle response
  3. MDM Server response the device query with Payload
  4. Device send ACK to server

So the APNS work just for triggering the device to connect to server and then query what command available for that device.

查看更多
对你真心纯属浪费
4楼-- · 2019-06-10 08:59

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

查看更多
ゆ 、 Hurt°
5楼-- · 2019-06-10 09:01

The MDM payloads are not public available. To use mdm you must register at apple (ios-mdm@apple.com).

查看更多
登录 后发表回答