dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.18k stars 1.74k forks source link

Update Notification Not Working Properly With Sideloaded Windows App | MAUI #25405

Open manishk-optimus opened 1 week ago

manishk-optimus commented 1 week ago

Description

We use the following method to get the information whether there is an update available on the MS Store.

`public async Task IsAppUpdateAvailableAsync(Version currentVersion) { var updates = await global::Windows.Services.Store.StoreContext.GetDefault() .GetAppAndOptionalStorePackageUpdatesAsync();

return updates.Any();

}`

Problem is that this method returns a record in a list even when we have sideloaded application with the same version we have in store. It works correctly when app is installed directly from the store.

If I sideload application with higher version than that it is in store, then I dont get an update and it works correctly.

So it looks like the problem is only with sideload of an app version equals the store version. I have not found any way how to get information what version is available on the store.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.0-rc.2.24503.2

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

manishk-optimus commented 1 week ago

Microsoft ticket reference https://learn.microsoft.com/en-us/answers/questions/2103815/update-notification-not-working-properly-with-side?comment=question#comment-1826433

dotnet-policy-service[bot] commented 6 days ago

Hi @manishk-optimus. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

dotnet-policy-service[bot] commented 15 hours ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.