[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.

 

相關文章:

[iOS] get MDM settings from system dictionary in swift
http://stackoverflow.max-everyday.com/2018/01/ios-get-mdm-settings-from-system-dictionary-in-swift/

MDM推送設定值到 iOS device
http://stackoverflow.max-everyday.com/2017/09/mdm-settings-ios-device/

MDM推送App到 iOS device
http://stackoverflow.max-everyday.com/2017/09/mdm-install-app/

Sample iOS 行動裝置管理伺服器(MDM server)
http://stackoverflow.max-everyday.com/2017/09/ios-mdm-server/

相關文章

寫留言

你的電子郵件位址並不會被公開。 必要欄位標記為 *