← Back to team overview

ubuntu-phone team mailing list archive

Re: Help needed to configure power management for Nexus 4

 

As I understand it, no, there isn't. That kind of thing is explicitly
forbidden. You will notice that if you switch to a different app your
app is also stopped.

For the kind of long-lived connection you describe, the "right" way
would be to send any notifications through the push notifications
service. When your app is running it would ignore them (because it's
connected to the server), but if it's not running the notifications
can be queued (if they're not interactive) or displayed/etc for the
user to interact.

What is your use case?

On Mon, Jan 27, 2014 at 12:49 PM, Ari Hannula <ari.hannula@xxxxxxxxx> wrote:
> Hi.
>
> I've noticed that while my app is running and after screen lock is activated
> (pressing power button or letting timeout to lock the device), all activity
> is stopped in the application i.e. writes to my log file stops, no more
> network communication etc. When the screen lock is deactivated, my app
> becomes alive again. How do I disable this? My app needs to talk to my
> server all the time using wifi or cellular 3G, even when the screen lock is
> active. Is there some simple way to configure powerd not to go into this
> kind of deep sleep?
>
> Cheers,
>  - Ari
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp


References