TICK_INTERVAL_SECONDS is currently set to 201. In the tick(), I’m just sending a heartbeat to a server if the last heartbeat submission is older than 10 minutes.
This results in the following heartbeats arriving at the server:
No matter if the power is connected or not, a lot of the heartbeats are missing. That is because according to what I can see in the logs my service app gets suspended for long periods of time. My question is: is it possible at all to run a background service that is permanently active? And if so, how should it be done?
Prevent background service from getting suspended
I’m trying to develop a background services that is permanently running. My main loop is looking like this:
TICK_INTERVAL_SECONDS is currently set to 201. In the tick(), I’m just sending a heartbeat to a server if the last heartbeat submission is older than 10 minutes.
This results in the following heartbeats arriving at the server:
No matter if the power is connected or not, a lot of the heartbeats are missing. That is because according to what I can see in the logs my service app gets suspended for long periods of time. My question is: is it possible at all to run a background service that is permanently active? And if so, how should it be done?
For reference, here is my manifest file:
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio