ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #12257
Re: Prevent GPS from sleeping
Not currently, no. In the future, when background processing is
available in some form, there should be a way for your app to get some
data and process it, from the system service, in the background, though.
I don't know when that will be possible, however.
Until then, the only way to have continuous processing for your app, is
to ensure it is in the foreground, and the screen does not lock. The
latter can be set by changing the screen timeout to Never in System
Settings. This is something the person using your app would have to
enable on their phone though, and they would also need to take care to
keep the app in the foreground.
On Sun, 2015-04-19 at 20:02 +0200, rpsoft wrote:
> Hi Rodney,
>
> Thanks for clarification.
> The name of my app is "BikeMap".
> So, is there any chance to prevent my app from pause if the screen is
> locked ?
>
> Regards,
> Ralph
>
> On 19.04.2015 19:35, Rodney Dawes wrote:
> > What is your app? GPS itself remains active, as it is a system
> > service, but when the screen is locked your app will be paused, so
> > it will not be able to receive or perform any updates.
> >
> >
> > On Sun, 2015-04-19 at 16:53 +0200, rpsoft wrote:
> >> Hi,
> >>
> >> I took again some tests with my app these days. Unfortunately
> >> seems the gps device going to sleep while the phone is locked. It
> >> has worked fine some month ago. Currently I'm on the stable
> >> channel, Nexus 4 and I can't track any gps data anymore if the
> >> phone is locked. Any ideas how do I can prevent this ?
> >>
> >> Thank you. Regards, Ralph
> >
Attachment:
signature.asc
Description: This is a digitally signed message part
Follow ups
References