I would like to get the blue bar when tracking in the background, but not when not.
My app uses location services all the time when active, so in iOS8 I use the
To show blue bar on header that your app is using location when pressing home button you have to set Privacy - Location When In Use Usage Description in Plist file
self.locationManager.delegate = self;
locationManager.desiredAccuracy = kCLLocationAccuracyBest
self.locationManager.requestWhenInUseAuthorization()
self.locationManager.pausesLocationUpdatesAutomatically = true
self.locationManager.allowsBackgroundLocationUpdates = true
when you use self.locationManager.requestAlwaysAuthorization() then it will not display blue header
you need only use
self.locationManager.requestWhenInUseAuthorization() then it will display blue header when you app is in background that your app is using Location
you have to also set background mode in capabilities in target for location