title: Send Location of User in Background Swift
body: <p>I am building an app where the user clicks a button and for 60mins (or any amount of time) we keep track of them by uploading their location to a server. Currently we are using 'Did Update Locations' function to send the users location to firebase in real-time.</p>
  
  <pre><code>func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
  
  }
  </code></pre>
  
  <p>This system works but it spams the server sending the location of the user to the server once every second. </p>
  
  <p>This is too much data and we would only need to send the users location to the server once every 10-30 seconds.</p>
  
  <p>What can we do send the users location once every 10-30 seconds? </p>