Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Geolocation not working on phone

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation not working on phone

Hello!

It is in Geolocation service settings.

Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Geolocation not working on phone

Thanks a lot Maryna :)

Ashish
Posts: 0
Joined: Sat Sep 13, 2014 3:18 pm

Geolocation not working on phone

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

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

Geolocation not working on phone

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

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

Geolocation not working on phone

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

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

Geolocation not working on phone

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?

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

Geolocation not working on phone

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation not working on phone

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

Return to “Issues”