iPhone - How Google Maps tracks our location 24*7, but in the battery settings it says only 2m on screen

I'm developing an application which works as same as the Google Location History ( Google - Timeline).


I need to do the following

  • constantly get users location whenever there is a movement of the iPhone
  • with minimal battery power
  • with less background running as done by the google maps.


I can able to achive the first two conditions, but my app is shown as running background for 24Hours in the Settings --> Battery area of the iPhone.


How can I reduce my app running in background for the entire day but still I need all locations?

Any help is appreciated..