In an app the call navigator.geolocation.getCurrentPosition used to work on all major browsers. But rechecking the app lately, I saw the Firefox just doesn't work anymore (still working on Chrome; other browsers not tested)
There are other questions dealing with the same thing, Molochdaa or noxoc. Both have a fiddle for demonstration. Both do not work for me (FF only, Chrome is fine).
Since our code hasn't changed for about half a year, might it be possible that something happened to Firefox?
Code:
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(
onSuccessGeoLocation, onFailGeoLocation,
{ timeout:10000 });
}
else {
onFailGeoLocation();
}
I receive the error message: "Geolocation: Permission Denied: 1, Position unavailable: 1, Timeout: 3,". Receiving when clicking "Share" on the popup asking whether to share or not.