Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

goelocation complete event

Hello again..
I'm hoping you have an idea on how to deal with gps data.
What I want is to detect if actual gps is enabled on android phone.
I dont think there is an actual setting I can check.

So I'm using java to check for speed == "" && altitude == "" && accurate 100
Figuring gps always gives these values vs. wifi gives no alt, speed, +150 accuracy.

Problem is..
The the gps is intermittent while running. I get good results then after 30 sec or so My success event runs and if there are poor values it fires my no gps alert.
Any Idea how to deal with this??
Thanks as always.

NB. watchPosition set to true.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

goelocation complete event

I'd check if there are any settings you can play with in the PhoneGap's Geolocation component -- how to handle poor values or check their forum for any settings that could help.

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

goelocation complete event

Ok. I will try that. Thanks.
Right now I'm using a timer with on success event.
ie. if speed == "" && altitude == "" && accurate 100
delay 3sec. then call another check again function with the same condition arguments.

Its probably not the best solution but does seem to work...

Return to “Issues”