title: Location access - App is not asking for user permission to access location - iOS 11
body: <p><strong>Description</strong></p>
  
  <p>App is not asking for user permission to access location and getting state notDetermined</p>
  
  <p><strong>Working perfectly till iOS-10</strong></p>
  
  <pre><code>var locationManager : CLLocationManager!
  
  func getLocationDetails()
      {
          locationManager.delegate = self
          locationManager.desiredAccuracy = kCLLocationAccuracyBest
          locationManager.requestAlwaysAuthorization()
          locationManager.allowsBackgroundLocationUpdates = true
          locationManager.startUpdatingLocation()
  
      }
  
  func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus)
      {
          if status == CLAuthorizationStatus.authorizedAlways || status == CLAuthorizationStatus.authorizedWhenInUse
          {
              locationManager.startUpdatingLocation()
          }
      }
  
      func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation])
      {
  
  
      }
  </code></pre>
  
  <p>Plist screenshot
  <a href="https://i.stack.imgur.com/z9AHw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/z9AHw.png" alt="enter image description here"></a></p>
  
  <p>Background Modes</p>
  
  <p><a href="https://i.stack.imgur.com/j5Ndp.png" rel="noreferrer"><img src="https://i.stack.imgur.com/j5Ndp.png" alt="enter image description here"></a></p>