This question has been asked many times, but each answer is the same, yet it doesn't work for me...
When I call navigator.geolocation.getCurrentPosition I get two alert boxes. One native, and the other from the webview (Safari). The general answer is to place the call in the Deviceready call. I am placing it in that listener, yet i still receive two alerts. (the second is very ugly!).
Any ideas on how to fix this??
document.addEventListener('deviceready', function() {
navigator.geolocation.getCurrentPosition(initialize, onError, { enableHighAccuracy: true });
}
Any help would be great!
Thanks