12-14-2012 12:33 PM
I have made an app now that only uses WebWorks and both getCurrentPosition and watchPosition work for me. I have tried it when going home and it did take about five minutes to get a fix (I don't have a SIM card in my DevAlpha so no AGPS is available).
Are you trying it outside? Do other GPS apps work for you?
12-14-2012 03:23 PM
I go to bed early so I can start early (so play while I'm not around)
My bloke came thru
Are you defining the right permissions in the config xml?
Off the top of my head I remember two needed (access location services and geolocatio
I'll go freeze my feet early in the AM using the new permissions
I can't tell you exactly what they are but I'll check with my mate again before bed
I imagine he's doing 'normal things' right now so should have the answer one way or the other sometime tomorrow
12-17-2012 10:02 PM
You can see an example using geolocation from our test app here:
If you haven't checked make sure that location services are enabled in the settings->location services, and also that you have the proper config.xml permission.
12-18-2012 04:45 AM
i will have a look at the code sample you provided, thanks.
BTW, please take into account the following bullets:
- Config.xml has "read_geolocation" specified
- location services are enabled
- Everything works and the callback is received on the VMWare simulator, but as soon as I switch to the real device (DEV Alpha), I always get a timeout..no callback
- The same code used to be working on early November (sorry, i do not remember the sdk version, but it was before Gold Release)
Thanks a lot
12-18-2012 05:08 AM
A short update: I used the provided code, fine with VMWare simulator, no way with Dev Alpha device..at this point, I guess it is a hardware issue..
The error I received from getCurrentPosition call is the following JSON:
12-18-2012 05:36 AM
12-18-2012 05:44 AM
yes I am, location services are enabled and my app is listed under Gps permissions..in any case, my config.xml is the following:
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="184.108.40.206" id="geolocation" xml:lang="en">
<rim:navigation mode="focus" />
<author href="http://www.example.com/" rim:copyright="Copyright 1998-2012 My Corp">myself</author>
12-18-2012 08:27 AM
the latest, annoying update :-)
I finally managed to get it working..it is simply due to my position..nearby the office (inside/outside) I have no callback, About 500m far away the response time is quite fast (2,3 seconds)..
The only thing I can do is crossing fingers until more performant upcoming devices :-)
Thanks to everyone