Share via

StoreContext.GetAppAndOptionalStorePackageUpdatesAsync() returns package with Mandatory flag always set to true

Samer Elias 0 Reputation points Microsoft Employee
2026-01-28T13:24:25.2866667+00:00

I am working on programmatically checking, installing and downloading updates for an app I have in the MS Store.
I have not set the Mandatory flag to none of the update packages I have uploaded, but I still see the flag being set to true.

I am doing the StoreContext calls from my WinUI 3 host app.

Microsoft Partner Center API
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-01-28T13:24:34.36+00:00

    If you are seeing the Mandatory flag set to true for updates that you have not marked as mandatory in the Partner Center, it could be due to a few reasons:

    1. Update Supersession: If a device comes back online after a mandatory update has been superseded by another non-mandatory update, the non-mandatory update might still show up as mandatory due to the missed mandatory update before it was marked as such.
    2. Developer-Controlled Updates: Ensure that you are correctly implementing the logic in your app to handle updates. The mandatory status is not enforced by Microsoft, and it is intended for developers to manage this within their own code.
    3. Check Submission Settings: Double-check the submission settings in the Partner Center to ensure that the updates are not inadvertently marked as mandatory during the submission process.

    You may want to review the implementation of your StoreContext calls and ensure that you are correctly interpreting the Mandatory property of the StorePackageUpdate object. The property indicates whether the package that has an update available is mandatory as specified by the developer in the Partner Center.

    If the issue persists, consider reaching out to Microsoft support for further assistance with your specific case.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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