question

MadhuLi-9634 avatar image
0 Votes"
MadhuLi-9634 asked RoyLi-MSFT commented

UWP Webview - Edge and Chromium

Hi,

I got this question from a client to whom we have built several UWP apps. Can you please share your plan on Webview upgrade so I can reply to this client.
"We have been using UWP for all our apps and I believe in several places we use Webviews that rely on Edge. With the Microsoft switch of the Edge engine to Chromium will we be impacted? Is the UWP Edge stuff sticking around for a bit or is this going to magically upgrade with a Windows 10 release and break things?"

And we are starting a new UWP project soon. For that should we use WebView2 or is it still under experiment?

Thanks,
Madhu

windows-uwp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RoyLi-MSFT avatar image
0 Votes"
RoyLi-MSFT answered RoyLi-MSFT commented

Hello,

Welcome to Microsoft Q&A!

For that should we use WebView2 or is it still under experiment?

Currently, there is no plan or information mentioned that the old Webview class based on Edge will be deprecated. Windows.UI.Xaml.Controls.WebView class is still available in UWP apps now. You could still use it in your apps.
Actually, it depends on your own scenario to decide which one to use. If your users have limitations or requirements about WebView, then you could just follow it.


Thank you.


If the response is helpful, please click "Accept Answer" and upvote it.
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.


· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RoyLi-MSFT Thanks for the reply. I am not clear what you mean by "Actually, it depends on your own scenario to decide which one to use. If your users have limitations or requirements about WebView, then you could just follow it."
At the moment what is the rocommended one to use in a new app. Old one or WebView2? Few months ago when we checked I think it was at Beta level or something and was asked not to use in Production. Is it the case still and still better to go with old webview?

0 Votes 0 ·

If your scenario requires using old Webview based on Edge, then use the old WebView. If your scenario requires using Chromium, then you could use WebView2 from the WinUI library.

Based on the document: Microsoft Edge WebView2 roadmap, WebView2 has a fixed version in Q4 2020. It not a beta version now. It's not easier to say which is better.

0 Votes 0 ·

@RoyLi-MSFT Thanks for the info. Only thing I am not clear is what you mean by 'scenario'. Are the things that can be done in WebView and WebView2 are different? Is that what you mean?

0 Votes 0 ·
Show more comments