Page 1 of 3

geolocation service not working on iphone

Posted: Mon Nov 03, 2014 9:38 am
by ciccio

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?


geolocation service not working on iphone

Posted: Mon Nov 03, 2014 1:18 pm
by ciccio

is there any news on my problem


geolocation service not working on iphone

Posted: Mon Nov 03, 2014 1:26 pm
by Evgene Karachevtsev

Hello Ciccio,

Unfortunately looks like this is a bug of iOS 8. The full and official support for iOS 8 will be after there will be upgrade to Cordoba version 3.7, unfortunately the timing is unknown.


geolocation service not working on iphone

Posted: Mon Nov 03, 2014 2:35 pm
by ciccio

but if i test another old project or if i restore an old version of my new project and i install the ipa on the same iphone the geolocation service works.
So maybe the problem is not with ios8


geolocation service not working on iphone

Posted: Mon Nov 03, 2014 2:42 pm
by Evgene Karachevtsev

Ciccio,

Could you please clarify, do you have an opportunity to test your project on a device with iOS 7?


geolocation service not working on iphone

Posted: Mon Nov 03, 2014 3:00 pm
by ciccio

i don't. But i did the versioning of my project and i tried to restore an old version of it, extrtact the ipa and then test it on iphone 5s (ios8.1). for this extracte ipa the geolocation service is working even on io 8.1.


geolocation service not working on iphone

Posted: Wed Nov 05, 2014 1:22 pm
by Evgene Karachevtsev

Hello Ciccio,

Could you please share your project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a, tell us its name and steps to reproduce http://docs.appery.io/documentation/s...


geolocation service not working on iphone

Posted: Wed Nov 05, 2014 3:49 pm
by ciccio

thanks Evgene,

the app is already shared with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a. the name is Simet.

to reproduce the problem you have to click on the button as in the picture Image

the geolocation service is not running on exported ipa installed on iphone 5s (ios8.1)

the geolocation service is working on:
appery tester on desktop
appery tester on android phone
appery tester on ios8.1 phone
extracted apk installed on android phone


geolocation service not working on iphone

Posted: Thu Nov 06, 2014 1:25 pm
by ciccio

do you have any news?


geolocation service not working on iphone

Posted: Thu Nov 06, 2014 1:27 pm
by Evgene Karachevtsev

Hello Ciccio,

Unfortunately not yet. We are working on it and will get back to you with the update.