Too Long; Didn't Read
This post will cover a topic that has been key in many applications and will focus on a solution working fully on the background. It will work from Android 4.4 (SDK 19) to the most recent version at the time of writing which is Android Oreo. The purpose of the solution is not for real-time tracking, it’s to track a user location in small intervals (e.g. 5 or 10 minutes) Google wanted to bring a few changes to the table, mainly regarding background services and background location.