adith visnu
Posts: 0
Joined: Mon Jul 07, 2014 6:32 am

Geolocation on device

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

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

Geolocation on device

Have you got any console errors on browser?

adith visnu
Posts: 0
Joined: Mon Jul 07, 2014 6:32 am

Geolocation on device

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Geolocation on device

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.

adith visnu
Posts: 0
Joined: Mon Jul 07, 2014 6:32 am

Geolocation on device

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Geolocation on device

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

Return to “Issues”