I'm used html5 geolocation I made from the documentation
getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(this.showPosition, this.showError);
} else {
alert("geolocation not support");
}
},
code working if i'm using chrome (toogle device toolbar) but in mobile browsers chrome(android) safari(ios) showing error
User did not share location
how to fix it ?
On phones geolocation enabled
UPD: Most likely this is due to the fact that there is no ssl certificate ?