ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #04880
Re: Thoughts on inhibiting app suspend via application lifecycle
-
To:
Ubuntu Touch <ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
-
From:
Alberto Mardegan <alberto.mardegan@xxxxxxxxxxxxx>
-
Date:
Mon, 28 Oct 2013 08:22:54 +0200
-
In-reply-to:
<CACL8x6Fa==kAMV6jzoL27GJ+qnaKo-3L1aMwu=vWNbuHf2bVZA@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0
On 10/27/2013 08:08 PM, Thomas Voß wrote:
>> I think we are misunderstanding; I'm not saying that the user should be
>> asked (at install time or at run time) for granting a permission. There
>> would be a policy groups "background_gps", "background_music" which the
>> app developer can declare in its manifest file. Then, if the application
>> is defocused while it's using the GPS or playing music, it wouldn't be
>> stopped. If it's not using the GPS or playing music, it will be stopped.
>> It seems much simpler to me, and I don't see what could go wrong here.
>
> What prevents every app from just doing that? One example: When iOS
> had the policy of an app playing music not being suspended, a lot of
> applications just looped a whitenoise sound file to not be suspended.
OK, this looks like a very strong point not to allow music applications
to be run in the background, but provide them with a background service.
Unless there is a non-costly way of detecting the case where an
application has been playing an almost silent sound for the last minute.
However, I still think that we shouldn't apply the same rule for the
GPS. Here if one application declares that it' using it just for the
sake of keeping running in the background, the user has a visible
indicator for it, and can deactivate the GPS. Also writing a system
background service for the GPS is much more difficult than writing a
background service for playing sounds (for the GPS, we have much more
complex logic).
Ciao,
Alberto
Follow ups
References
-
Thoughts on inhibiting app suspend via application lifecycle
From: Jamie Strandboge, 2013-10-21
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: John Lea, 2013-10-22
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Thomas Voß, 2013-10-22
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Jamie Strandboge, 2013-10-22
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Rasmus Eneman, 2013-10-22
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Thomas Voß, 2013-10-23
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Andy Doan, 2013-10-23
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Michał Sawicz, 2013-10-23
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Jo-Erlend Schinstad, 2013-10-23
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Rick Spencer, 2013-10-24
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Jamie Strandboge, 2013-10-24
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Rick Spencer, 2013-10-24
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Alberto Mardegan, 2013-10-25
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Thomas Voß, 2013-10-25
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Alberto Mardegan, 2013-10-27
-
Re: Thoughts on inhibiting app suspend via application lifecycle
From: Thomas Voß, 2013-10-27