我已成功設法向設備發送MDM推送通知,設備響應空閒狀態。但是,當我發送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
我也試過deviceinformation但無濟於事:
<!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>
它應該發送一個確認狀態或者至少是一個錯誤。請問我做錯了什麼?
當您發送'DeviceInformation'命令時會發生什麼?你是否收到設備的信息? – rlandster
沒什麼。只是總是與內容長度相同的響應0 – michelle