The Location services have been activated
After using the following code and I'm showing these messages.
firefox 1: User denied geolocation prompt
edge 1: Only secure origins are allowed (see:https://permanently-removed.invalid/Y0ZkNV).
chrome 1: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).
chrome iphone user denide geolocation prompt
safari iphone 1:origin does not have permission to use geolocation service
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=API_Key"></script>
<script type="text/javascript">
function ViewCoOrdinate() {
navigator.geolocation.getCurrentPosition(
function (position) {
document.getElementById("txtLoc").value = position.coords.latitude + ',' + position.coords.longitude;
// document.getElementById("txtLon").value = position.coords.longitude;
}, function (error) {
alert(error.code + ": " + error.message);
}, {
enableHighAccuracy: true,
maximumAge: 10000,
timeout: 5000
}
);
return false;
}
</script>