retrieve package version in runtime in a uwp chromium based pwa

Eran Singer 1 Reputation point
2022-01-31T14:53:18.653+00:00

since there is no access to the Windows object in the new EdgeChromium
i cannot access the version number of thw packaged pwa.

is there any equivalent to Windows.ApplicationModel.Package.current?

bare in mind that i want to distinguish web app version from packaged version (for internal feature flags)

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,114 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yu Zhou-MSFT 12,036 Reputation points Microsoft Vendor
    2022-02-02T03:30:30.93+00:00

    Hi @Eran Singer

    I can totally understand what you want, but there's no such equivalent API now. I'm afraid what you want can't be achieved.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,
    Yu Zhou