Updating Configuration Profile installed in iOS device in MDM

前端 未结 3 698
长情又很酷
长情又很酷 2021-01-13 09:52

I want to send a configuration payload to a device. Eg. I want to send a restriction payload (Disallow safari) to a particular device. i.e. I want to update the configuratio

相关标签:
3条回答
  • 2021-01-13 10:07

    Remove the XML declarations. Encode64 your plist data (....).

    0 讨论(0)
  • 2021-01-13 10:11

    To be clear, the DATA section should contain the base64 encoded (UTF8) string of everything starting with the plist tags in the mobiliconfig from IPCU to the end /plist tag

    <?xml version=\"1.0\" encoding=\"UTF-8\"?>
    <!DOCTYPE plist PUBLIC \"-//Apple Computer/DTD PLIST 1.0//EN\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
    <plist version=\"1.0\">
    <dict>
    <key>CommandUUID</key>
    <string>c22d6f22-d222-4477-9e6e-5886e5f1e2a1</string>
    <key>Command</key>
    <dict>
    <key>RequestType</key>
    <string>InstallProfile</string>
    <key>Payload</key>
    <data>base64encode("<plist>...</plist")</data>
    </dict>
    </dict>
    </plist>
    
    0 讨论(0)
  • 2021-01-13 10:30

    It needs to be the contents of the containing the PayloadContent of the profile you wish to install which has been Base64 encoded.

    You don't need all the XML, just the first block.

    0 讨论(0)
提交回复
热议问题