we're running Svelte SPA app inside HWV, but for easier debugging it would be of great help to us to be able to direct the HWV to a localhost URL, like http://10.0.2.2:5173 which is the case for our Svelte app.
10.0.2.2 is a special URL in Android emulator which stands for localhost on development PC.
I tried: mainHybridWebView.Source = "http://10.0.2.2:5173"; in MainPage.xaml.cs, but after inspecting with chrome://inspect#devices the URL in HWV is still https://0.0.0.0
Hi,
we're running Svelte SPA app inside HWV, but for easier debugging it would be of great help to us to be able to direct the HWV to a localhost URL, like
http://10.0.2.2:5173
which is the case for our Svelte app. 10.0.2.2 is a special URL in Android emulator which stands for localhost on development PC.I tried:
mainHybridWebView.Source = "http://10.0.2.2:5173";
in MainPage.xaml.cs, but after inspecting with chrome://inspect#devices the URL in HWV is stillhttps://0.0.0.0