ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service not working on iphone

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?

ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service not working on iphone

is there any news on my problem

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

geolocation service not working on iphone

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.

ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service not working on iphone

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

geolocation service not working on iphone

Ciccio,

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

ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service not working on iphone

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

geolocation service not working on iphone

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...

ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service not working on iphone

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

ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

geolocation service not working on iphone

do you have any news?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

geolocation service not working on iphone

Hello Ciccio,

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

Return to “Issues”