03-05-2013 05:33 AM
Hi BB Devs,
during some tests on a real Z10 i figured out, that it seems getting (GPS) location is impossible when the Device turns into "standby" (pushing the Button on top of Z10), and also when the app is running in background/minimized (swipe on Z10 from bottom->up and minimize app).
All other functions are working in the background or standby - but not the getting the GPS location.
In the config.xml i set the "run_when_backgrounded" and of corse the "access_location_services" permits.
Can anyone confirm this issue/feature?
I found this Post here in the Forum:
So my hope is that something was changed in the last month, or will change very soon?
Any - hopefully positive - news for me?
Thanks a lot
03-06-2013 01:21 AM
I know cascades != webworks but i found this in the cascades documentation:
If you want your app to continue to get location fixes while your app is in the background or minimized, you must set the canRunInBackground property to true. For example, this could be used by a fleet tracking application that needs to update the dispatch office with the current location of the vehicle while the app is minimized.
So this means to me that it must be generally posible to receive a GPS location - even when the App is in background / minimized.
Perhaps anyone has an idea or tip for me to get this working in webworks.
Would be great!!!
03-06-2013 09:18 AM
thanks for your post!
I tried this, and build this eventListener in my app.
Everytime when the state is changed i stoped my active intervall and started a new one. First an intervall without location service ---> works (also when app was invisible or thumbnail.
The same with location service --> doesn´t work.
The function doesn´t run into the success callback of the navigator.geolocation.getCurrentPosition code.
"An unexpectet error : Timeout expired"
So it seems the getCurrentPosition gets no answer from the device when windowState is invisible or thumbnail?
03-14-2013 06:28 PM
03-15-2013 02:40 AM
i already created an issue at github:
should i open an issue at JIRA too?
If yes - which project / version should i choose.
I checked the JIRA projects and just found:
bb10 -> native sdk, adobe aire - no webworks
web apis -> only up to os version 7
tools -> webworks sdk v2.2 for playbook
i think the right project would be
tools -> bb10 webworks sdk v1.0.x
but i couldn´t find any matching...?
Thanks a lot for a short answer
03-15-2013 10:14 AM
Ah, if you've created in Github then that should do; the development teams monitor that directly as well and should jump in with some feedback there. I'll keep an eye on it for their response as well.