Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xbox? #2155

Closed
kizerkizer opened this issue Feb 9, 2022 · 44 comments
Closed

Xbox? #2155

kizerkizer opened this issue Feb 9, 2022 · 44 comments
Assignees
Labels
feature request feature request tracked We are tracking this work internally.

Comments

@kizerkizer
Copy link

kizerkizer commented Feb 9, 2022

Can WebView2 run on UWP apps on Xbox yet? Would be very nice so as to enable building games with HTML5 tech mixed with UWP power.

AB#30204515

@champnic champnic added feature request feature request and removed question labels Feb 10, 2022
@champnic
Copy link
Member

We are beginning the design work for bringing WebView2 to Xbox/Hololens now. I'll use this item to track and give updates. Thanks!

@kizerkizer
Copy link
Author

Wow. Awesome. Thank you!

@andychapman2
Copy link

@champnic - is there a planned release date for WebView2 Xbox support? It would help with our planning no matter how provisional or vague.

@kizerkizer
Copy link
Author

How's it coming?

@champnic
Copy link
Member

Very provisional at this point, but I would guess around Q1/Q2 of next year, 2023.

@andychapman2
Copy link

Thanks for the update. IMHO device support should be prominent in the WebView2 literature e.g. the Supported Platforms section of the Introduction to Microsoft Edge WebView2 page should include supported devices.

@champnic
Copy link
Member

@andychapman2 I like the idea. Generally speaking the support comes from the operating system rather than specific devices. ie. if a given device runs Windows 11, then it will be able to run WebView2. However, I'm not sure offhand what version OS we market Xbox or Hololens as running, so in those cases we may list them out specifically.

@champnic champnic added the tracked We are tracking this work internally. label May 10, 2022
@rob-bateman
Copy link

I am trying to find out more info about using WebView2 with GDK. Is this already possible on Desktop? And how long before it is officially supported on Xbox

I see reports of people already trying WebView2 with UWP on Xbox, so is the runtime already working and are we just waiting for the official support? Some more info on this would be great

@champnic
Copy link
Member

champnic commented Aug 1, 2022

We are working on Xbox support now, but I wouldn't expect it to already be working. It's requiring work on both our (WebView2) side, as well as the OS.

@pubtom
Copy link

pubtom commented Aug 10, 2022

Great! We are waiting for the Xbox support for WebView2 with UWP!

@2Elemental
Copy link

Any news on when support for Webview2 on XBOX/HoloLens2 might land? We are currently unable to run PowerApps in our embedded app views

@champnic
Copy link
Member

champnic commented Jan 12, 2023

Our current targets are Q1 '23 for a preview, with a GA in Q2 '23. These are not binding and are subject to change. Thanks!

EDIT: The latest I've heard now is preview Q2 '23, and GA Winter '23. Hopefully we are able to ship sooner though. Sorry for any confusion!

@nhh
Copy link

nhh commented May 4, 2023

Any news on this?

@2Elemental
Copy link

I understood this would land on HoloLens with the upcoming move to Windows 11, is this also going to happen for XBOX?

@champnic
Copy link
Member

champnic commented May 4, 2023

Currently Xbox is still tracking for GA release in Winter 2023. I believe the team has opted to not do a public preview before then, but if I hear otherwise I'll update here.

@spetrey
Copy link

spetrey commented Jul 10, 2023

@champnic any update on this? is Xbox still tracking a GA release for Winter 2023?

@Pedro1234-code
Copy link

@champnic Hey! Is WebView2 going to release on Xbox only for GDK or also on UWP?

@champnic
Copy link
Member

@spetrey Yes we are still on track for Winter 2023 release.

@Pedro1234-code WebView2 on Xbox will be UWP only, no GDK.

@Pedro1234-code
Copy link

@champnic Is WebView2 on Xbox going to support file upload?

@champnic
Copy link
Member

I don't have a reason to believe it won't, though I'm not sure it's a scenario we've specifically tested. @oggy22 in case you know.

@Pedro1234-code
Copy link

I don't have a reason to believe it won't, though I'm not sure it's a scenario we've specifically tested. @oggy22 in case you know.

I am asking because Edge on Xbox doesn't support download and upload.

@novac42 novac42 added the Awaiting release dev work has been done and in release pipeline. label Aug 1, 2023
@tishion
Copy link

tishion commented Aug 24, 2023

any progress update?

@jobel0092
Copy link

I'm invested!

@kizerkizer
Copy link
Author

Still looking forward to this!

@nhh
Copy link

nhh commented Oct 26, 2023

Is the microsoft store api still supported inside webview2?

@Pedro1234-code
Copy link

I don't have a reason to believe it won't, though I'm not sure it's a scenario we've specifically tested. @oggy22 in case you know.

Is it possible that WebView2 will already be launched on Xbox in November 10?

@nishitha-burman
Copy link
Collaborator

nishitha-burman commented Nov 1, 2023

Hi all, Microsoft Edge WebView2 is now available for Xbox apps 🎉🎉

Get started with WebView2 in WinUI 2 (UWP) apps
Remote debugging Xbox WebView2 WinUI 2 (UWP) apps
Samples

@stavfx
Copy link

stavfx commented Nov 1, 2023

Hi all, Microsoft Edge WebView2 is now Available for WebView2 🎉🎉

omg yes!!!! Thank you!!!

@victorhuangwq victorhuangwq removed the Awaiting release dev work has been done and in release pipeline. label Nov 1, 2023
@pubtom
Copy link

pubtom commented Nov 1, 2023

Hi all, [Microsoft Edge WebView2 is now available for Xbox apps]

Great news! Congratulations to the team! :)

Is there any system requirement we should check before we use WebView2 instead of WebView?
In which Xbox os update brings WebView2 to Xbox?

@stavfx
Copy link

stavfx commented Nov 1, 2023

Do we need to use the Fixed Version approach for now?

@nishitha-burman
Copy link
Collaborator

This is available on the Xbox October 2310 version (231018-2200)

@stavfx
Copy link

stavfx commented Nov 1, 2023

This is available on the Xbox October 2310 version (231018-2200)

That's the version I'm running, yet I'm seeing this when launching a sample app
image

@nishitha-burman
Copy link
Collaborator

nishitha-burman commented Nov 1, 2023

@stavfx you also need to have the corresponding SDKs downloaded on PC to utilize WebView2 on Xbox. Here are links to the release notes which have links to install the SDK: https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#10208841

@nthorn
Copy link

nthorn commented Nov 1, 2023

@stavfx You should be able to get that sample working on Xbox by doing this:

  1. Right-click on the project and select "Manage NuGet Packages"
  2. Install the 1.0.2088.41 version of the package "Microsoft.Web.WebView2"

@stavfx
Copy link

stavfx commented Nov 1, 2023

I missed that step. Works now!! thank you :)

@victorhuangwq
Copy link
Collaborator

Seems like there's lots of excitement about this 💯 !!
For future questions do make use of https://github.com/MicrosoftEdge/WebView2Feedback/discussions, so that other community members can jump in / vote for the best answers!

@kizerkizer
Copy link
Author

Thank you Microsoft 🥹

@pubtom
Copy link

pubtom commented Nov 3, 2023

@stavfx you also need to have the corresponding SDKs downloaded on PC to utilize WebView2 on Xbox. Here are links to the release notes which have links to install the SDK: https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp#10208841

@nishitha-burman thank you the info!

In UWP Xbox apps why we need to include a WebView2 SDK fixed version? Like on UWP Desktop apps we don't need to include the Microsoft.Web.WebView2 1.0.2088.41 nuget package in the .csproj to run the app.

Is there any cons that we will have a fixed version (1.0.2088.41) of the SDK? On Desktop will we have an evergeen SDK installed by default?

(I read the documentation and I understand that the WebView2 runtime is part of the OS on Windows11 and deployed to most of the Windows10 devices. But this is the runtime, what about the WebView2 SDK?)

@champnic
Copy link
Member

champnic commented Nov 7, 2023

@pubtom The SDK always needs to be part of the app for all frameworks, including on UWP desktop with WinUI 2. The one current exception is if you are building a Windows App SDK project, then the WebView2 nuget is actually built into the Windows App SDK.

@pubtom
Copy link

pubtom commented Nov 8, 2023

@champnic thats interesting: I have a WinUI2 UWP (Desktop&Xbox) app without the Microsoft.Web.WebView2 nuget package and the WebView2 works without problem in Desktop.

On Xbox I have seen the same "A suitable verson of Microsoft Edge WebView2 Runtime was not detected." error as stavfx shown in the screenshot. So now I included the Microsoft.Web.WebView2 nuget package to make it work on Xbox also.

So how it was possible that it was working on Desktop UWP without including the SDK nuget?

@champnic
Copy link
Member

champnic commented Nov 8, 2023

@pubtom It's possible the WinUI package is bringing in the WebView2 nuget package as a dependency - I'd check you projects installed nuget packages. Or you were using WebView(1) and not WebView2? I'd need to see the project.

@FXMATAlgaba
Copy link

Hi all, Microsoft Edge WebView2 is now available for Xbox apps 🎉🎉

Get started with WebView2 in WinUI 2 (UWP) apps Remote debugging Xbox WebView2 WinUI 2 (UWP) apps Samples

What about the UserAgent? It looks like the default identification of devices through the navigator useragent cannot be used anymore as the default one is now:

Mozilla5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/573.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.34

@nthorn
Copy link

nthorn commented Nov 13, 2023

@FXMATAlgaba The recommended way to detect the device type is via the DeviceForm API:
https://learn.microsoft.com/en-us/uwp/api/windows.system.profile.analyticsinfo.deviceform?view=winrt-22621

You can call this API in your native code and pass the result into the WebView2 via a query parameter (or any other method of passing information into the WebView2).

@ff7man
Copy link

ff7man commented Dec 3, 2023

The Edge app on xbox has a button you can press in the url field to enable game controls. This disables the pointer. When you use a mouse as input it returns a pointer allowing you to leave game control mode and return to browser controls.

There doesn't appear to be anything similar we can do with WebView2, the closest I found was just a way to disable pointer mode, but this can't be reactivated.

var app = (Application.Current as App);
app.RequiresPointerMode = ApplicationRequiresPointerMode.WhenRequested;
// does not work
// app.RequiresPointerMode = ApplicationRequiresPointerMode.Auto

Has anyone found a way to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests