Check if we can use Alarm Manager on Android
Idea:
- When the app starts, register a regular alarm via the AlarmManager.
- When we get the alarm, start a service and do the sync (and other operations) there.
- We still need to react to the booted broadcast as we need to re-register after a reboot.
https://stackoverflow.com/a/5267234/6367098
If this would work, we could remove the additional background service (which currently runs in its own process) and maybe even completely ditch the dependency on Qt Remote Objects. That could help streamline the app layout on all platforms (as especially on iOS, we currently cannot run in the background (in that sense)).
Update:
We might also consider using WorkManager.
Edited by Martin Hoeher