Backgroud support life cycle

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

Edited by: Raul Lara on 18 Apr, 2023


1 Replies
Charles Albers

Wearable devices often have limited battery life and system resources of house of hazards. Constant background activity can drain the battery quickly and affect your device's performance. Therefore, it is essential to design your application in an efficient and optimized manner.