when pointing webview to a page that has this kind of function:
with most browsers i get "would you like to share your location?" and if agree then get the location in return, however when using webview i get the page without any alert, share permission question nor results..
any advice will be highly appreciated! :sign0085:
Thx & Best,
R.
B4X:
<html>
<head>
<script type="text/javascript">
// Check for geolocation support
if (navigator.geolocation) {
// Use method getCurrentPosition to get coordinates
navigator.geolocation.getCurrentPosition(function (position) {
// Access them accordingly
document.getElementById("Latitude").value = position.coords.latitude;
document.getElementById("Longitude").value = position.coords.longitude;
});
}
else
alert("no geo-location support");
</script>
</head>
<body>
Latitude:<input type="text" id="Latitude" name="Latitude" value="?" />
Longitude:<input type="text" id="Longitude" name="Longitude" value="?" />
</body>
</html>
with most browsers i get "would you like to share your location?" and if agree then get the location in return, however when using webview i get the page without any alert, share permission question nor results..
any advice will be highly appreciated! :sign0085:
Thx & Best,
R.