I have been trying to send the location of the user to my API only when the user is moving.
I am able to do this if the app is running in the background. But,Life360(a family location tracking app) is able to track the user even when the app is not running the background. I am not sure how they have achieved that.
Does anyone have any idea on how we can achieve this?
All the things I have tried is only working when the app is running in the background.