I figured out a simple solution for XCode 11.6, iOS 13
Just do:
locationManager.allowsBackgroundLocationUpdates = true
while setPausesLocationUpdatesAutomatically, doesn't exist in my code so I assume it is set to false which is probably the default value.
Vote up if you liked my solution :)