We are facing the following issue while sending an InstallApplication command to an iOS device. The app we are trying to install is NOT purchased through VPP. It is a free App Store application only. We get an error response saying "iTunes Store ID of the Application could not be validated".
Further performing some tests, we noticed the following:
1. We tried removing the key "ChangeManagementState" key, and the InstallApplication command works perfectly without any error! (Right now, we are looking into this option as a temporary workaround.)
2. This error is returned for any app that does not belong to the Apple ID's purchase history. Let us say, App A was never installed by the Apple ID "ID1". If I send InstallApplication command for this app, and try to install using ID1, I always get this error. However, if I manually install this app once from App Store (using ID1) and uninstall it. And now try to send the InstallApplication command, it works without any error.
3. Seems to occur in the latest iOS 9.3.2 version. We tried in an earlier version but there were no problems.
4. VPP App Assignment does not return this error.
Did any of you face such an issue?
InstallApplication command and response dicts:
<dict>
<key>CommandUUID</key>
<string>InstallApplication;Collection=302</string>
<key>Command</key>
<dict>
<key>RequestType</key>
<string>InstallApplication</string>
<key>iTunesStoreID</key>
<integer>392790924</integer>
<key>ManagementFlags</key>
<integer>0</integer>
<key>ChangeManagementState</key>
<string>Managed</string>
</dict>
</dict>
Here is the response returned:
<dict>
<key>ErrorCode</key>
<integer>12023</integer>
<key>ErrorDomain</key>
<string>MCMDMErrorDomain</string>
<key>LocalizedDescription</key>
<string>The iTunes Store ID of the application could not be validated.</string>
<key>USEnglishDescription</key>
<string>The iTunes Store ID of the application could not be validated.</string>
</dict>
</array>
<key>RejectionReason</key>
<string>CouldNotVerifyAppID</string>
<key>Status</key>
<string>Error</string>