title: How to get location when app goes to background or phone is locked?
body: <p>I'm trying using <code>locationManager</code> to get my location and update it to my webservice.</p>
  
  <pre><code>- (void)locationManager:(CLLocationManager *)manager 
  didUpdateToLocation:(CLLocation *)newLocation 
  fromLocation:(CLLocation *)oldLocation {
      //some code here
  }
  </code></pre>
  
  <p>It's normal, but if my app goes to the background or phone screen is locked, updating location may be paused. How do I get the location anyway?</p>