Question: UWP WinUI2 and Webview2 Fixed distribution on Windows Team (Surface Hub) #7439
Replies: 12 comments
-
I believe WebView2 in WinUI will only work on Desktop. @jevansaks may be able to confirm. |
Beta Was this translation helpful? Give feedback.
-
By Desktop you mean that it won't work in an app running on Windows teams ? |
Beta Was this translation helpful? Give feedback.
-
Yes, that is my understanding. |
Beta Was this translation helpful? Give feedback.
-
The latest Windows Teams OS is desktop-based though, right? |
Beta Was this translation helpful? Give feedback.
-
if that's the case it sounds like this should work if they can install the webview2 runtime, but how do they install the runtime in these devices? maybe a question for @champnic |
Beta Was this translation helpful? Give feedback.
-
@jevansaks from which version is Windows Teams OS is desktop-based ?
@asklar that's my main question. I would like to be able to include the WebView2 runtime binaries inside my application so that an external installation is not necessary, but idk if that's possible because the documentation is not clear about it. |
Beta Was this translation helpful? Give feedback.
-
@alexispolakMURAL I'll open an item on WebView2 to track deployment of the runtime binaries through the store to support Teams. I believe we may have some ongoing work with MSIX that would solve this. In the meantime, step 3 of the doc means you need to deploy the folder containing the unpacked binaries along with your app somewhere (note: this will make you app install much larger). Step 4 means you will need to point the WebView2 to use those binaries. Unfortunately there isn't a super-straightforward way to do this in the WinUI WebView2 controls, but you should be able to set the I'm opening a bug on our end to document how to use Fixed Version binaries in UWP/WinUI. Let me know if you have more questions. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@champnic thanks ! Can I have a link to the issue ticket ? |
Beta Was this translation helpful? Give feedback.
-
#6150 Pretty much the same feature request. The solution with the PATH is working with UWP applications? |
Beta Was this translation helpful? Give feedback.
-
Found a solution. At least for WinUI 3 with Project Reunion 0.8 version.
And before using WebView2 Control:
Thanks @champnic for the tip |
Beta Was this translation helpful? Give feedback.
-
I end up doing what @nickprotop suggested and got the WinUI2 app running with WebView2 Fixed Runtime but got a lot of errors with some
The list is biger than this one, but didn't want to make the comment super big |
Beta Was this translation helpful? Give feedback.
-
I am having trouble finding if it is possible to do this.
I have a UWP WinUI2 app that uses WebView2 and I need the app to work in Windows Teams (a version of windows that Surface Hub devices have) but on these devices the WebView2 Runtime cannot be installed because only the microsoft store can install apps.
I would like to be able to include the WebView2 runtime binaries inside my application so that an external installation is not necessary. The problem is that most of the documentation or guides are for WPF applications and the process is different is not clear. For example, points 3, 4 and 5 of the "Details about the Fixed Version runtime distribution mode" in this documentation https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution aren't clear enough.
Beta Was this translation helpful? Give feedback.
All reactions