I would like to start my foreground service every 30 minutes to synchornize data with server.
What I have in mind
Setup a periodic task that just starts my foreground synchronization service.
What I have tried so far
Broadcast Receiver with android.net.conn.CONNECTIVITY_CHANGE. This was my first approach. Try to synchronize data only if device lost connection sometime and recovered it later on. This doesn't work anymore for newer android versions. When app is killed, this broadcast receiver stop working.
AlarmManager
AndroidX.Work.Worker
JobService
All what I tried stop working after app killed. So my question is the following. Is there a way of achieving what I'm aming for in android 10 or above?