We have a weird problem with installing enterprise apps here. When the InstallApplication plist is sent to the device to install an app, the device responds with a message saying the app is already installed when it's clearly not.
Request to device:
<?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>InstallApplication;Collection=901</string>
<key>Command</key>
<dict>
<key>RequestType</key>
<string>InstallApplication</string>
<key>ManifestURL</key>
<string>https://annbarasi-2534.csez.zohocorpin.com:9383/MDM/apprepository/1/appupload/601/375/Manifest.plist</string>
<key>ManagementFlags</key>
<integer>0</integer>
<key>ChangeManagementState</key>
<string>Managed</string>
</dict>
</dict>
</plist>
Response from device:
<?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>InstallApplication;Collection=901</string>
<key>ErrorChain</key>
<array>
<dict>
<key>ErrorCode</key>
<integer>12025</integer>
<key>ErrorDomain</key>
<string>MCMDMErrorDomain</string>
<key>LocalizedDescription</key>
<string>The app “com.zoho.inhouse.zohochat” is already installed.</string>
<key>USEnglishDescription</key>
<string>The app “com.zoho.inhouse.zohochat” is already installed.</string>
</dict>
</array>
<key>RejectionReason</key>
<string>AppAlreadyInstalled</string>
<key>Status</key>
<string>Error</string>
<key>UDID</key>
<string>6b6874c6a8aa4dec928d43e0c1c25f30a11b7097</string>
</dict>
</plist>
If we try to send a RemoveApplication plist just to be sure, the device returns a "Not Managed" status.
Request to device:
<?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>RemoveApplication;Collection=901</string>
<key>Command</key>
<dict>
<key>RequestType</key>
<string>RemoveApplication</string>
<key>Identifier</key>
<string>com.zoho.inhouse.zohochat</string>
</dict>
</dict>
</plist>
Response from device:
<?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>RemoveApplication;Collection=901</string>
<key>ErrorChain</key>
<array>
<dict>
<key>ErrorCode</key>
<integer>12029</integer>
<key>ErrorDomain</key>
<string>MCMDMErrorDomain</string>
<key>LocalizedDescription</key>
<string>The app “com.zoho.inhouse.zohochat” is not managed.</string>
<key>USEnglishDescription</key>
<string>The app “com.zoho.inhouse.zohochat” is not managed.</string>
</dict>
</array>
<key>Status</key>
<string>Error</string>
<key>UDID</key>
<string>6b6874c6a8aa4dec928d43e0c1c25f30a11b7097</string>
</dict>
</plist>
Note: This happens only in a few devices. The devices are all running iOS 9.0 and above.
Any ideas on how to fix this? We aren't able to install the app as a consequence on the said devices.