hello,
i have a problem with the geolocation service on iphone. my app is working fine on desktop. When i exported the apk and the ipa when i tested the apk the geolocation service was working fine. But when i run the geolocation service on Iphone 5s (ios 8.1) the servise always go on fail. I don't know if it depedends from the phone gap upgrade because if i restore an old version of my project and i install on the same iphone the extracted ipa i get when i load the page which invokes the geolocation service i get a question by the app asking if i want to give my coordinates to the app and the geolocation service works.
i tried to flag the location service in the settings for the ipa
i tried to invoke the service on page load and on page show as well as i tried with setting the enabling highaccuracy variable to true with 60000 ms of timeout or setting the enabling highaccuracy variale to false but the geolocation service do not works on iphone.
i also tried to do not invoke the service but running i js
codeif (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
MessageDialog( 'title', 'Attenzione', 'Problemi nel calcolo della posizione corrente' );
}
function showPosition(position) {
localStorage.setItem('my_lat', position.coords.latitude);
localStorage.setItem('my_lon', position.coords.longitude);
}
but even this code is working on the descktop but it does not work when i try to install the ipa/code
what should i do to use the geolocation service on iphone?