I want to build a mobile web application that will require the users location. I want to avoid the need to create applications for separate mobile platforms and the growing sophistication of mobile browsers seems a way around that.
Which mobile browsers will allow client JavaScript to use the phone's GPS or cell tower data?
There have been several questions about this in the past, but I'm wandering about the state of the art in current or foreseeable future.
Thanks,
Gil
I want to build a mobile web application that will require the users location. I want to avoid the need to create applications for separate mobile platforms and the growing sophistication of mobile browsers seems a way around that.
Which mobile browsers will allow client JavaScript to use the phone's GPS or cell tower data?
There have been several questions about this in the past, but I'm wandering about the state of the art in current or foreseeable future.
Thanks,
Gil
Share asked Dec 23, 2009 at 10:32 GilShalitGilShalit 6,5039 gold badges51 silver badges73 bronze badges 1- This is still a popular question so I thought I will update with the current state of the art: mobilehtml5 Look at the Geolocation entry. – GilShalit Commented Nov 5, 2012 at 7:01
2 Answers
Reset to default 7There is the Geolocation API available for Javascript which is now supported by some smartphone browsers (Webkit,Safari).
Since the API is from the W3C, support in the future is likely to be extended to most mobile phones capable of GPS.
Similar question: Which Devices Support Javascript Geolocation via navigator.geolocation ?
I'm working on an open source library that supports all javascript location capable phones with the W3C standard. So far it supports iPhone, Android, BlackBerry and some fringe browser platforms running in a browser. The lib can also be used when writing web stack standalone apps for Nokia OVI and the Palm WebOS.
http://code.google./p/geo-location-javascript/