dynamiquel / GameBarBrowser

A basic web browser made for the Xbox Game Bar on Windows 10.
The Unlicense
27 stars 2 forks source link

Tracking issue for WinUI 3 support on game bar #34

Open superusercode opened 3 years ago

superusercode commented 3 years ago

Necessary to use webview2 in this uwp app (https://github.com/MicrosoftEdge/WebView2Feedback/issues/186) Currently tracked @ https://github.com/microsoft/XboxGameBarSamples/issues/100

dynamiquel commented 3 years ago

Thank you for the track.

superusercode commented 3 years ago

https://www.theregister.com/2021/07/02/uwp_microsoft_winui3/ MS will not be supporting winui3 on UWP officially as of today - making it unlikely that webview2 will be available anytime soon.

dynamiquel commented 3 years ago

Rip UWP.

vidager commented 3 years ago

We're still working with the Windows team on WebView2 support for UWP for Game Bar. It's not committed yet, but we're hoping to make it happen.

superusercode commented 3 years ago

@dynamiquel webview on winui 2 is now available as preview https://blogs.windows.com/msedgedev/2021/08/31/webview2-windows-app-sdk-winui2-runtime-cdp-helper/

dynamiquel commented 3 years ago

@superusercode Thanks for this. Just looked it up and it seems like Microsoft.UI.Xaml 2.7.0-prerelease.210827001 does support WebView2. I'll try to find some time where I can update this app with WebView2 and all the other proposed features.

dynamiquel commented 3 years ago

I've given WebView2 a go. There have been many issues so far but they are manageable as the features are either not that important or a workaround has been implemented. However, there is one major issue, which is that WebView2 completely ignores keyboard input when in the Game Bar. I've spent a lot of time trying to find a solution but to no avail.

I wonder if this is something that must be fixed by the Game Bar team?

WatislavB commented 4 months ago

I accidentally discovered that Webview2 recognizes the keyboard if you open the Emoji window (Win + .) so that it has a Search field.

Although it looks like a bug, it's interesting that technically it can work. πŸ˜…

![Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2024-04-18 004258](https://github.com/dynamiquel/GameBarBrowser/assets/91764346/9eebb1bb-5122-4e23-8de3-328619cdc5ec)
![Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2024-04-18 004205](https://github.com/dynamiquel/GameBarBrowser/assets/91764346/99b044a6-7037-4778-b8d4-7137c77c2c39)
![Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2024-04-18 004248](https://github.com/dynamiquel/GameBarBrowser/assets/91764346/c3010cee-5220-46d6-8088-db9dd63e6da3)