Issue with "Mandatory" package update status in Microsoft Store
Hi,
I am experiencing an issue with the Microsoft Store incorrectly reporting "Mandatory" package update status in some of my UWP applications.
Following the official documentation, I implemented an update flow in my application that provides two different approaches based on StorePackageUpdate.Mandatory property:
var updates = await storeContext.GetAppAndOptionalStorePackageUpdatesAsync();
var mandatoryUpdates = updates.Where(x => x.Mandatory).ToList();
var nonMandatoryUpdates = updates.Where(x => !x.Mandatory).ToList();
if (mandatoryUpdates.Any())
{
// Launch package update via StoreContext according to the docs
}
else if (nonMandatoryUpdates.Any())
{
// Show a Dialog for the user to choose whether they want to install update now or later
}
The problem is that for some applications, the updates
list always contains only packages with Mandatory = true
, even though update is not flagged as Mandatory in the Partner Center.
Additional Information:
- The update is not flagged as Mandatory in the Partner Center.
- The application package used for testing is created using MSBuild by the same pipeline used for creating packages published to the Store.
- The application build has the correct PFN and a lower version than the build published to the Store (or in a package flight). Updates are performed successfully, but they are treated as mandatory instead of optional.
Question:
What factors can influence the Mandatory
status of a package update? Is there something specific I need to configure to ensure updates are marked as optional?
Thank you in advance for your help!