MDM ReturnToService not working as expected on iOS 18 Beta 3

just upgraded my local iPhone 15 to iOS 18 Beta 3, and I enrolled the device to MDM server. Then ran EraseDevice command with ReturnToService as enabled. https://developer.apple.com/documentation/devicemanagement/erasedevicecommand/command/returntoservice MDM command request body:

<?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>Command</key>
        <dict>
            <key>DisallowProximitySetup</key>
            <false/>
            <key>PreserveDataPlan</key>
            <true/>
            <key>RequestType</key>
            <string>EraseDevice</string>
            <key>ReturnToService</key>
            <dict>
                <key>Enabled</key>
                <true/>
                <key>WiFiProfileData</key>
                <data>WiFi Profile Base64</data>
                <key>MDMProfileData</key>
                <data>MDM Profile Base64</data>
            </dict>
        </dict>
        <key>CommandUUID</key>
        <string>0001_EraseDevice</string>
    </dict>
</plist>

MDM executed the command successfully. The device erased itself, and opened Hello Screen after few secs, but device did not went to the Home Screen, however same works fine on iOS 17.

MDM ReturnToService not working as expected on iOS 18 Beta 3
 
 
Q