Page 1 of 1

Geolocation on device

Posted: Wed Sep 17, 2014 2:15 am
by adith visnu

Why geolocation services on device is hard to get the coords?
I start the gps services and wifi services on my device
but it has got nothing.

see on my capture screen
.png?1410920052]Image

thanks


Geolocation on device

Posted: Wed Sep 17, 2014 2:42 am
by Tooba Atif

Have you got any console errors on browser?


Geolocation on device

Posted: Wed Sep 17, 2014 2:50 am
by adith visnu

nope sir. there is not any error on browser test.


Geolocation on device

Posted: Wed Sep 17, 2014 3:10 am
by Yurii Orishchuk

Hi Adith,

GPS service could get location in aprox 15min at first time. So you should:

1 Set timeout to 900000 (15m). http://prntscr.com/4nkqvi/direct

2 Add Success event handler to geolocation service with following code:

pre

alert("success");

/pre

3 Add Success event handler to geolocation service with following code:

pre

alert("FAIL");

var failText = JSON.stringify(arguments);

Appery("mobilelabel_5").text(failText);

alert("AFTER FAIL");

/pre

Then run in on device and see for the alerts.

Regards.


Geolocation on device

Posted: Wed Sep 17, 2014 3:35 am
by adith visnu

yurii,
what is 'arguments' parameter for?

and when i try your code, there is a fail. which is mean it still cannot retrieve the coords


Geolocation on device

Posted: Wed Sep 17, 2014 4:32 am
by Yurii Orishchuk

HI Adith, what is alert after "fail" says? Can you make screen shot?