简体   繁体   English

Windows.Universal Javascript PWA 应用程序使用 Edge legacy 而不是 Edge Chromium

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

Wondering what causes my PWA app to use edge 18 engine as runtime when the Edge Chromium is present on my windows machine.想知道当我的 windows 机器上存在 Edge Chromium 时,是什么导致我的 PWA 应用程序使用 edge 18 引擎作为运行时。

Because of this I have to downgrade my Javascript target to es2016 (es6) as I compile my typescript.因此,在编译 typescript 时,我必须将 Javascript 目标降级为 es2016 (es6)。

I am using Aplication.Manifest and generating a package msix.我正在使用 Aplication.Manifest 并生成 package msix。

Could my Applicication.Manifest playing any part?我的 Applicication.Manifest 可以起到任何作用吗? 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.或者有什么方法可以改变它,以便运行时使用当前版本的 Edge Chromium 引擎(如果可能的话)。

Wondering you build your javascript based native apps and target a better runtime in 2022?想知道您构建基于 javascript 的本机应用程序并在 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.更新:为了澄清我正在使用 appx package 清单并创建一个带有 PWA 网站链接的应用程序。

You can take a look at this sample code from Microsoft official UWP sample using WebView2.您可以使用 WebView2 查看 Microsoft 官方 UWP 示例中的示例代码 See if this can help you.看看这是否可以帮助你。 I would suggest following the official tutorial to make sure everything works fine.我建议遵循官方教程以确保一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 windows 10 WebView 是否会使用 Microsoft Edge(Chromium) - Is windows 10 WebView will use Microsoft Edge (Chromium) going forward 将网站转换为不能在Edge上运行的渐进式Web应用程序(PWA) - Converted website into a Progressive Web App (PWA ) not working on Edge 当网站安装为PWA时,如何在Microsoft Edge中启用javascript警报和确认框? - How to enable javascript alert and confirm boxes in Microsoft Edge when a website installed as PWA? 边缘上的Angular 7.1.1 PWA ServiceWorker无法加载 - Angular 7.1.1 PWA ServiceWorker on Edge doesn't load 是否可以在 Edge 桌面上自动添加 PWA(Win 10) - Is it possible to automatically add PWA on desktop in Edge (Win 10) PWA(Progressive Web App)-从Windows UWP应用程序启动PWA - PWA(Progressive Web App) - Launch PWA from Windows UWP application 使用组策略时,Edge PWA 未应用桌面快捷方式名称和图标 - Edge PWA not applying desktop shortcut name and icon when using Group Policy 如何打开桌面PWA的其他应用程序窗口? - How to open additional app windows for a Desktop PWA? 旧版 PWA - GTM 加载两次 - Legacy PWA - GTM loads twice 如何将 mailto 链接与 Windows 10 上的 PWA 应用相关联? - How do I associate mailto links with a PWA app on Windows 10?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM