I’ve managed to solve this by doing these two things:
- added
UIBackgroundModes‘location’ to Info.plist - added
NSLocationAlwaysUsageDescriptionto Info.plist
As of iOS 11, keys are named:
NSLocationAlwaysAndWhenInUseUsageDescriptionandNSLocationWhenInUseUsageDescription