[iOS] install / uninstall app on device through MDM server?
阿新 • • 發佈:2018-12-27
使用下列的範例就可以安裝自家(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.