Issue with "Mandatory" package update status in Microsoft Store

Joel 0 Reputation points
2025-01-24T12:43:15.7233333+00:00

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:

  1. The update is not flagged as Mandatory in the Partner Center.
  2. The application package used for testing is created using MSBuild by the same pipeline used for creating packages published to the Store.
  3. 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!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,075 questions
Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,244 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.