Tengo el último teléfono 1.2 y puse el código de prueba de los documentos en mi aplicación. Cuando ejecuto mi aplicación tanto en el simulador (xcode 4.2 simulator 5.0) como en mi iPad con 5, aparece el error "Geolocation Error: timeout".Phonegap Geolocation Error: timeout
Alguien más ha experimentado esto? Aquí está mi código:
document.addEventListener("deviceready", onDeviceReady, false);
// PhoneGap is ready
function onDeviceReady() {
var myOptions = { enableHighAccuracy: true };
navigator.geolocation.getCurrentPosition(onSuccess, onError,myOptions);}
Gracias!
Si está utilizando PhoneGap Build importando phonegap.js está realmente bien: Build incorpora la última versión estable tanto como phonegap.js y phonegap-x.y.z.js. –