我成功地向设备发送了 MDM 推送通知,并且设备以空闲状态响应。但是,当我发送 MDM 命令时:
<?xml version=\"1.0\" encoding=\"utf-16\"?>
<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<plist version=\"1.0\">
<dict>
<key>CommandUUID</key>
<string>4FB2550B-ADFD-425C-BF6C-92CEDE747F23</string>
<key>Command</key>
<dict>
<key>RequestType</key>
<string>InstalledApplicationList</string>
</dict>
</dict>
</plist>
该设备不包含任何响应。它以某种方式关闭连接。我正在编写 XML,然后读取流以检查同一连接上的响应。当我关闭连接然后重新发送推送通知时,我得到了这个空响应:
PUT / HTTP/1.1
Host: 172.18.130.31:1234
User-Agent: MDM/1.0
Content-Length: 0
Accept: */*
Content-Type: application/x-apple-aspen-mdm
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: keep-alive
我也尝试了设备信息但无济于事:
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CommandUUID</key>
<string>7C28313A-BFE7-4430-A516-BB16C8F6F750</string>
<key>Command</key>
<dict>
<key>RequestType</key>
<string>DeviceInformation</string>
<array>
<string>DeviceName</string>
<string>OSVersion</string>
<string>BuildVersion</string>
<string>ModelName</string>
<string>Model</string>
<string>ProductName</string>
<string>SerialNumber</string>
<string>DeviceCapacity</string>
<string>AvailableDeviceCapacity</string>
<string>BatteryLevel</string>
<string>CellularTechnology</string>
<string>IMEI</string>
<string>MEID</string>
<string>ModemFirmwareVersion</string>
</array>
</dict>
</dict>
</plist>
它应该发送一个确认状态或至少一个错误。请问我做错了什么?