i added Geolocation plugin in my app and used this code for getting the current location in phonegap. but this code does not work.
document.addEventList
On iOS this will always work one way or the other. If the plugin fails, the browser's own Geolocation API will be used. There's some undesired side effects with the fallback though:
On Android it only works if you have set the correct permissions in app/AndroidManifest.xml: