title: locationManager background battery life
body: <p>I have a question about saving battery when using locationManager. I was looking here: 
  <a href="https://developer.apple.com/library/content/documentation/Performance/Conceptual/EnergyGuide-iOS/LocationBestPractices.html" rel="nofollow noreferrer">https://developer.apple.com/library/content/documentation/Performance/Conceptual/EnergyGuide-iOS/LocationBestPractices.html</a>
  And here:
  <a href="http://tumblr.twicetwice.net/post/47249353501/cllocationmanager-battery-saving-tips-and-best" rel="nofollow noreferrer">http://tumblr.twicetwice.net/post/47249353501/cllocationmanager-battery-saving-tips-and-best</a>
  And in many stackoverflow postings, but I can't use the most of these tips like <code>startMonitoringSignificantLocationChanges()</code>, because I need high accuracy updates very often, also in the background. Moreover I know that I can't use a timer in the background to get the location for example every 10 seconds. Now I want to stop getting location updates if I don't move for a specific time. And when I move again, I want to get updates again. I can't use 
  <code>pausesLocationUpdatesAutomatically = true</code>, because I don't want the user to put the app back into the foreground to update the location. Is there any other way to extend battery life when the app is in the background? I also searched for examples with CoreMotion, because I had the idea to turn off the GPS if I don’t move for a specific time and turn it on if the accelerometer detects a few steps. But I found out that this also doesn’t work in the background, or does anyone know a way to get this working? Are there maybe much better solutions for stop updating location when I don’t move and start updating location when I move while the app is in backgound? I would be thankful for any suggestions what I could do.</p>
  
  <p>Btw: I’m pretty new in Swift so maybe there are very easy solutions that I don’t know and that I couldn't find.</p>