- You need to set JUCE_USE_WIN_WEBVIEW2 in the config flags for juce_gui_extra
- Make sure that the WebView2 runtime is installed on any computer that will run the application (details on how to do this can be found here)
- Use
WebBrowserComponent::Options::withBackend
to request the webview2 backend - Ensure that the WebView2Loader.dll library is visible to your application at runtime - you can use
WinWebView2::withDLLLocation
to load this from a custom location, if the dll isn’t in a standard system location. This dll can be found in the WebView2 Nuget package.