Providing MDM DeviceLock Payload

We received a response with the status as Idle after sending the first payload as mdm :. Now we want to send a simple overhead to the device. we performed the same process to send the payload, but the answer was empty.

We follow the use of the certificate as follows: 1. On the MDM server, to send the mdm commands, we use the APNS certificate of the MDM provider with an identifier like com.apple.mgmt.myapp. (This identifier is set as the theme in the configuration profile). 2. In the configuration profile, we set the credentials as a p12 file, which is returned by the MDM client.

I get the following error .: MC | Failed to parse profile data. Error:

    NSError 0x1c58c2f0:
    Desc   : Invalid Profile
    US Desc: Invalid Profile
    Domain : MCProfileErrorDomain
    Code   : 1000
    Type   : MCFatalError


    <Warning>: MDM|Command Status: Error
    Error: NSError 0x1c58c2f0:
    Desc   : Invalid Profile
    US Desc: Invalid Profile
    Domain : MCProfileErrorDomain
    Code   : 1000
    Type   : MCFatalError
+5
source
3

APNS. " " , MDM APNS, XML (NOT JSON!) , .

+4

Base64 *.mobileconfig "dict" node.

xml, , IOM MDM. - "InstallProfile"

+1

"Idle", , , APNS. , , DeviceLock . base64, .

<?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>DeviceLock</string>
    <key>Command</key>
    <dict>
        <key>RequestType</key>
        <string>DeviceLock</string>
        <key>Message</key>
        <string>Locking the device. Contact +91 9999999999</string>
    </dict>
</dict>
</plist>
0

All Articles