GetAppAndOptionalStorePackageUpdatesAsync always returns Count == 0

asked 2020-08-28T22:20:49.473+00:00
Sacha B 76 Reputation points

I'm trying to do 2 things;

Update my Microsoft Store published app from code in the app. The updates are critical.
Have an Update button in the app that updates the app and shows the latest version number.

I'm always getting a Count == 0 from GetAppAndOptionalStorePackageUpdatesAsync().

I have set the local version number to 1.0 and the ones available in the store are way higher but it still returns Count == 0. I have tried in Debug and Release mode, same result.

Thanks in advance.

Universal Windows Platform (UWP)
{count} votes