我試圖編寫類似於http://whatismyudid.com/的函數,然後通過驗證,它將返回用戶UDID並將其存儲到數據庫中以供將來與該用戶參考。從.mobileconfig獲取設備UDID
我已經編寫了一個.mobileconfig xml文檔,可以在Profile Installer中打開,但是當我告訴它安裝配置文件時,它將以[alert] Invalid Profile
響應,但沒有提示主體。沒有說明,沒有代碼,沒有幫助。
我是新來的移動配置遊戲,所以任何幫助都會讓我興奮不已。
這裏是我的配置文件:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<dict>
<key>URL</key>
<string>http://apps.mortlabs.com/device/retrieve.php</string>
<key>DeviceAttributes</key>
<array>
<string>UDID</string>
<string>IMEI</string>
<string>ICCID</string>
<string>VERSION</string>
<string>PRODUCT</string>
</array>
</dict>
<key>PayloadOrganization</key>
<string>MortLabs.com</string>
<key>PayloadDisplayName</key>
<string>Profile Service</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadUUID</key>
<string>B958E359-34C2-42F4-BD0C-C985E6D5376B</string>
<key>PayloadIdentifier</key>
<string>com.mortlabs.profile-service</string>
<key>PayloadDescription</key>
<string>This temporary profile will be used to find and display your current device's UDID.</string>
<key>PayloadType</key>
<string>Profile Service</string>
</dict>
</plist>
剖面由導航到http://apps.mortlabs.com/device/enroll.php與移動Safari
Kev!太棒了,我會盡快嘗試,讓你知道它是如何工作的。如果它解決了問題,那麼我給你道具。 – joseym 2011-06-25 17:06:30
可以通過asp.net獲取嗎? – 2013-02-08 06:20:52
我怎樣才能從.mobileconfig文件的asp.net c#中獲得udid? – 2013-02-08 06:32:22