title: Best way to use background location updates in iOS (Swift)
body: <p>I have to make an app in iOS using Swift 3 that sends the user's location via API every 3 or 5 minutes, while the app is backgrounded. I don't know which is the best way to do this, or if it's even possible because of Apple's strict background rules. The location has to be quite precise and the app needs to run for a long time backgrounded, possibly not consuming too much battery.
  If it isn't possible, it would be nice to know which would be the best approach in this case. Thank you very much.</p>