I’m not too sure if this would work even but I have created a html page that gives the user their Lat and Long, and I wanted to be able to access that from my app.
I grabbed this example and it works great in a browser but I cant seem to grab that response from within the app -
<!DOCTYPE html>
<html>
<body>
<body onload="getLocation()">
<script>
var x = document.getElementById("demo");
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude +
"
Longitude: " + position.coords.longitude;
}
</script>
</body>
</html>
Yeah, I wanted to have a fallback for GPS location.
I originally have an online geolocation api but they closed and my app kinda broke
I think I’ll go down that path again though because it worked pretty well while it lasted.
i thought that was possible but javascript code is not executed, so you get html text only, my bad.
That seems to be possible using System.Net.HttpWebRequest, well i read that’s not works with webplayer. so anyway Mich solution sounds better