1. 程式人生 > >[iOS] install / uninstall app on device through MDM server?

[iOS] install / uninstall app on device through MDM server?

使用下列的範例就可以安裝自家(in-house) 和 app store 上的 app了。

<?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>CommandUUID</key>
          <string>
4424F929-BDD2-4D44-B518-393C0DABD56A</string> <key>Command</key> <dict> <key>RequestType</key> <string>InstallApplication</string> <key>iTunesStoreID</key> <integer>
464656389</integer> <key>ManagementFlags</key> <integer>4</integer> </dict> </dict> </plist>

Here is example of RemoveApplication

<?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>CommandUUID</key> <string>4424F929-BDD2-4D44-B518-393C0DABD56A</string> <key>Command</key> <dict> <key>RequestType</key> <string>RemoveApplication</string> <key>Identifier</key> <string>com.test.test</string> </dict> </dict> </plist>

There is no functionality to whitelist and blacklist apps. However, you can query device for list of application and if you see some blacklisted application you can do some actions.

說明:上面的範例是如何去下載 Apple App Store 上的 App.

相關文章: