navigator.geolocation.getCurrentPosition do not work in Firefox 30.0 -
navigator.geolocation.getCurrentPosition do not work in Firefox 30.0 -
i using firefox 30.0(latest ff),navigator.geolocation.getcurrentposition
working in chrome not in version of ff.
here code
if (navigator.geolocation) { navigator.geolocation.getcurrentposition(geoprocess, geodeclined); }else{ alert('your browser sucks. upgrade it.'); } function geodeclined(error) { alert('error: ' +error.message); } function geoprocess(position) { alert('it works'); }
i getting error
error: unknown error acquiring position
note: stoped working when upgrade ff 30.0
i've possible solution:
i think mozilla guys have alter in location adquisition process, take more time , function getcurrentposition gets timeout.
this reply question of why works in chrome, worked in ff 29 , not in ff 30.0.
but thats suposition. let's real world:
i've set timeout of 10 seconds on phone call , works. i've done way:
navigator.geolocation.getcurrentposition(onsuccess, onerror, {timeout:10000});
this fixed me. works on ff 30.
firefox navigator
Comments
Post a Comment