geolocation error 3

1,538 views
Skip to first unread message

ziobudda@gmail

unread,
Dec 20, 2011, 9:56:03 PM12/20/11
to phon...@googlegroups.com
Hi all, in my iPhone 4S (ios 5.0) and iPod (ios 4.3) I have a problem with the geolocation: I receive always a geolocation error code 3 TIMEOUT.

How can I fix it ? I need to use my "position".

Thanks.

M.

--
Michel 'ZioBudda' Morelli                       mic...@ziobuddalabs.it
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)
0200619074 - 3939890025 (mobile)--  Fax: +39-0291390660
http://www.ziobuddalabs.it                      Skype: zio_budda

Giacomo Balli

unread,
Dec 21, 2011, 10:08:07 AM12/21/11
to phonegap
change the timeout when you call the gps.
are you outside? is GPS signal weak?

ziobudda@gmail

unread,
Dec 21, 2011, 10:11:24 AM12/21/11
to phon...@googlegroups.com
Il giorno 21/dic/2011, alle ore 16:08, Giacomo Balli ha scritto:

change the timeout when you call the gps.
are you outside? is GPS signal weak?

Sorry, I have found that I need a big timeout value in some case...
But on internet I have found more and more people with this error code 3 message so I have ask in ML before tried a big timeout value.

M.


--
Michel 'ZioBudda' Morelli                       mic...@ziobuddalabs.it
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)

Greg Avola

unread,
Dec 21, 2011, 10:39:26 AM12/21/11
to phonegap
Upgrade to 1.3 and it fixes the issue.

Thanks,
Greg

sromalewski

unread,
Dec 22, 2011, 12:13:27 AM12/22/11
to phonegap
Greg, are you sure 1.3 fixes the issue? PG 1.3 includes the code from
mschulkind for error #197, but as I noted at https://github.com/callback/callback-ios/pull/14
when I incorporated his fix it didn't have any effect. But it'd be
great to confirm that it actually does. What do you think?

Steve

cabin

unread,
Mar 23, 2012, 10:23:59 AM3/23/12
to phon...@googlegroups.com
Has there been any progress on this? Using PG 1.4.1 I still get this error: Error Code:3 Geolocation Error: Timeout. I have tried variations like these..not sure if this is the right track. Is this a known issue on iOS4/5 still?

  var options = { maximumAge: maximumAge, timeout: 10000, enableHighAccuracy: false };
vs
  var options = { maximumAge: maximumAge, timeout: 10000, enableHighAccuracy: true };

  navigator._geo.getCurrentPosition(display_location, display_location_error, options);
vs
  navigator.geolocation.getCurrentPosition(display_location, display_location_error, options);

etc.


Attempts were all done after onDeviceReady()

zSprawl

unread,
Mar 23, 2012, 1:22:25 PM3/23/12
to phon...@googlegroups.com
Hmmm I've been using the geolocation stuff for my upcoming app without issue. I even wrote a blog entry, which apparently I've spammed a lot today, but maybe it will help?

http://zsprawl.com/iOS/2012/03/using-phonegap-with-google-maps/

cabin

unread,
Mar 23, 2012, 2:55:50 PM3/23/12
to phon...@googlegroups.com
Interesting.. are you on iOS4 or 5? PG 1.4.1? The only way I can get it to work is disable phonegap completely and rely on Safaris navigator.geolocation. But that is problematic as well. I'm having trouble with 5 for sure.. I don't know about iOS4. Works fine on Android too.
Reply all
Reply to author
Forward
0 new messages