Backgroud support life cycle

Backgroud support life cycle

BY 18 Apr 2023 Native Application Development

Hello, I was wondering if it is possible to have a background app running 24/7 on a wearable device.

I tried to accomplish this with no luck.

What I need: App that gathers sensor’s information periodically and send it to a server.

What I tried: UI + Service App. Manifest background category. Alarm API (recurring) every hour for the whole week.

So far, the App has been working for a few hours, but there’s a point where the service code is not executed any more. I’m guessing the S.O is killing my process.

Is this even possible?

The device I’m using is an Active 2 Samsung watch.

Thanks in advance. Raúl

Written by