The latest solution for iPhone OS 4.x and PhoneGap 0.9.x is to follow the example of the docs for and add an event listener that waits for the device to be ready, otherwise the native navigator.geolocation is used and you get an alert like this: “var/mobile/Applications/UUID/appname.app/www/index.html” Would Like To Use Your Current Location.