InstallApplication command doesn't update app which is opened in foreground in supervised iOS device.

Description:

An app update of a app store app or a enterprise app is pushed from MDM using "InstallApplication" command to an iOS device. The app is opened in foreground when an update is pushed. The device is supervised and the app is VPP purchased. When the command is sent to device, the app doesn't update automatically and shows a prompt to update the app. Kindly help us understand this case.

Sample InstallApplication Request:

<!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;Sample=000000</string>
	<key>Command</key>
	<dict>
		<key>RequestType</key>
		<string>InstallApplication</string>
		<key>iTunesStoreID</key>
		<integer>1113153706</integer>
		<key>InstallAsManaged</key>
		<true/>
		<key>ManagementFlags</key>
		<integer>5</integer>
		<key>Options</key>
		<dict>
			<key>PurchaseMethod</key>
			<integer>1</integer>
		</dict>
		<key>ChangeManagementState</key>
		<string>Managed</string>
	</dict>
</dict>
</plist>

Sample InstallApplication Response:

<?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;Sample=000000</string>
	<key>Identifier</key>
	<string>com.microsoft.skype.teams</string>
	<key>State</key>
	<string>PromptingForUpdate</string>
	<key>Status</key>
	<string>Acknowledged</string>
	<key>UDID</key>
	<string>0000-000000-0000</string>
</dict>
</plist>
Answered by Device Management Engineer in 722166022

This is intentional. If the app is in the foreground, the user is given a chance to cancel the update. The user may have unsaved data, or might need to continue using the app at the moment. If the user cancels the install, try again later.

Accepted Answer

This is intentional. If the app is in the foreground, the user is given a chance to cancel the update. The user may have unsaved data, or might need to continue using the app at the moment. If the user cancels the install, try again later.

InstallApplication command doesn't update app which is opened in foreground in supervised iOS device.
 
 
Q