Windows.Universal Javascript PWA app uses Edge legacy instead of Edge Chromium

142 views Asked by At

Wondering what causes my PWA app to use edge 18 engine as runtime when the Edge Chromium is present on my windows machine.

Because of this I have to downgrade my Javascript target to es2016 (es6) as I compile my typescript.

I am using Aplication.Manifest and generating a package msix.

Could my Applicication.Manifest playing any part ? Or is there any way it can be changed so that the runtime uses the current version of Edge Chromium engine if at all it is possible.

Wondering you build your javascript based native apps and target a better runtime in 2022 ?

  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17134.0" MaxVersionTested="10.0.18363.1139"/>
  </Dependencies>

Update: To clarify I am using appx package manifest and creating an app with a link to a PWA site.

1

There are 1 answers

0
Kendrick Li On

You can take a look at this sample code from Microsoft official UWP sample using WebView2. See if this can help you. I would suggest following the official tutorial to make sure everything works fine.