← Back to team overview

ubuntu-phone team mailing list archive

Re: Thoughts on inhibiting app suspend via application lifecycle

 

On 10/23/2013 04:09 AM, Thomas Voß wrote:
class MyBackgroundService : public ubuntu::Component
{
      public:
           // From ubuntu::Component
           void on_new_message(const Message& message) override;
           const std::string& name() const override { return
"MyCoolBackgroundService"; }
           bool store_state_for_migration(const Archive& archive) override;
};

This is the type thing I'm needing to make it eaier to port an application I wrote for Android[1]. It would also be really nice if we provided some helper code for scheduling sync/alarm type services. ie - "call this method in about 20 minutes". If you do that, then our base code group calls together to help keep the device idling as long as possible.

1: https://github.com/dwalkes/WakeMeSki


Follow ups

References