07-05-2013 01:49 PM
I am noticing my application will not get gps events when the device goes to sleep. I have the setting for run_in_background set to true, but this does not appear to work for device sleep. Is there a setting for the AbstractBpsEventHandler to keep receiving events even when the device goes to sleep?
I also found that the QGeoPositionInfoSource has the property "canRunInBackground
07-05-2013 02:02 PM
09-18-2013 03:19 PM
Sorry for late reply, this post missed my search criteria. If you are using the C bps api and the geolocation events, you need to call geolocation_set_background() (passing true) when setting up your geolocation request. If you are using the C++ QtLocationSubset api then set the QGeoPositionInfoSource property "canRunInBackground".
This is in addition to having run_when_backgrounded permission ("Run as Active Frame") set for the app in its bar-descriptor.xml file.