I am trying to get the user location via
navigator.geolocation.getCurrentPosition(this.check_location.bind(this), this.on_get_position_error.bind(this), { enableHighAccuracy: true, timeout: 5000 });
it works perfectly most of the time. But if the geolocation is disabled in the device settings (for example on iPhone : Settings App > Privacy > Location services > OFF), Safari or Chrome won't call any callback (neither this.check_location()
nor this.on_get_position_error()
).
Any idea ?
Thanks