Page 3 of 3

Geolocation not working on phone

Posted: Fri Sep 05, 2014 6:29 am
by Tooba Atif

Where is this set? enableHighAccuracy ????
I am having the same issue gps not working. its enabled on my phone


Geolocation not working on phone

Posted: Fri Sep 05, 2014 7:21 am
by Maryna Brodina

Hello!

It is in Geolocation service settings.


Geolocation not working on phone

Posted: Fri Sep 05, 2014 8:02 am
by Tooba Atif

Thanks a lot Maryna :)


Geolocation not working on phone

Posted: Sat Oct 11, 2014 3:50 pm
by Ashish

Hi
I am also facing the same error na d i tried it in xiaomi mi3 and samsung galaxy s5.In both the devices it is throwing Position retrieval timeout and after increasing the time out the issue is still not resolving


Geolocation not working on phone

Posted: Mon Oct 13, 2014 2:31 pm
by Evgene Karachevtsev

Ashish,

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 not working on phone

Posted: Wed Oct 29, 2014 5:01 pm
by ciccio

Hi i'm having a problem with geolocation too.

my app was working properly till some week ago both on desktop and devices. But now if i run the app on the desktop the geolocation service work if i test the app on android and iphone device it doesn't wor.

i tried by changin the enablinghighaccuracy to true and false, by changing the timeout duration, by invoking the service on onload and on page show events, but the geolocation service always fails


Geolocation not working on phone

Posted: Wed Oct 29, 2014 5:10 pm
by Evgene Karachevtsev

Hello Ciccio,

Could you please clarify, do you have any errors when you test it in browser? Also please specify on iphone you test it as installed .ipa file?


Geolocation not working on phone

Posted: Fri Oct 31, 2014 5:38 pm
by ciccio

hello eugene
the apk is working fine on my android s2, note2 phones.
but the geolocation service is still not working and always going on fail on iphone 5s with the ios8.1 (even if i restore an old version of my project and i try tu run it on the same iphone i get a question by the app asking if i want to give my coordinates to the app and the geolocation service works)

i also tried to don't invocke the geolocation service and i used

codeif (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
MessageDialog( 'Simet spa', 'Attenzione', 'Problemi nel calcolo della posizione corrente' );

Code: Select all

 } 

function showPosition(position) {
localStorage.setItem('my_lat', position.coords.latitude);
localStorage.setItem('my_lon', position.coords.longitude);

}/code
bu this code is working on the descktop but it does not when i try to install the ipa


Geolocation not working on phone

Posted: Tue Nov 04, 2014 4:38 pm
by Maryna Brodina

Hello!

I am sorry for delay!
Is there an error when function navigator.geolocation.getCurrentPosition(showPosition); is executed? Or it stops before this function execution? Looks like problem on Cordova side http://stackoverflow.com/questions/24...