← Back to team overview

ubuntu-phone team mailing list archive

Re: Thoughts on inhibiting app suspend via application lifecycle

 

On 10/22/2013 09:59 AM, Thomas Voß wrote:
> Along the same lines of the metronom app: If the gps app is in
> foreground, the location service should signal to powerd that it
> should not suspend at least the gps, probably the network, CPU (and
> thus, memory access).

Why does it matter if the app is in the foreground or background? A
navigation app needs to continue runnint anyway, even if it's in the
background.
Shouldn't the location service also signal to the shell (or to whatever
component is responsible for apps lifetime) that the app is using the
GPS and shouldn't be stopped?

(if not: how would you solve this use case?)

Ciao,
  Alberto


Follow ups

References