javascript - How to determine geolocation on mobile devices from browser -
i've managed determine location using html5 geolocation
getviahtml5 = function(done) { if(navigator.geolocation) { navigator.geolocation.getcurrentposition(function(position) { vicinity.lat = position.coords.latitude; vicinity.lng = position.coords.longitude; done(); }, function(e) { console.warn('error(' + e.code + '): ' + e.message); }); } else { console.warn("browser doesn't support geolocation"); } };
will work on blackberry, samsung, , iphones? or each phone or browser have different way determine location? browser , not native app.
Comments
Post a Comment