Hello all ! I'm working on android project where I'm doing background task or say tracking location,...
a
Hello all ! I'm working on android project where I'm doing background task or say tracking location, putting application on background. Now let say my application get destroyed after 3-4 hours due to any reason (most probably OS) I'm tracking my device outages(Active , inactive , app is not reachable) on my backend, so is there any way to trigger some kind of dialogue or wake my application up after get destroyed automatically (so I get location updates properly). hopefully I described my case. I will appreciate your approaches.
😶 2
m
take a look on Services. they can survive on the background
✅ 1
d
I believe WorkManager is the preferred recommendation these days over Services https://developer.android.com/guide/components/services
✅ 1