title: iOS Location Services Enabled/Disabled event when application closed
body: <p>I'm currently using <code>CLLocationManager</code> to always track geofences even when the application is in the background. I can't seem to find a way to listen for when location services is enabled/disabled.</p>
  
  <p>Is it possible to listen for a location service enable/disable event or when location is enabled/disabled for your specific application while the application is closed?</p>
  
  <p>Please note I'm using Xamarin, but Objective-C code is fine.</p>
  
  <pre><code>public class LocationManager
  {
      protected CLLocationManager locationManager;
  
      public LocationManger()
      {
          this.locationManager = new CLLocationManger();
  
          if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
          {
              locationManager.RequestAlwaysAuthorization();
          }
  
  
          // ... get array of CLCircularRegion and start listening to each
  
          // locationManager events...
          locationManager.RegionEntered += (sender, e) =&gt; { /*stuff*/ };
          locationManager.RegionLeft += (sender, e) =&gt; { /*stuff*/ };
          locationManager.DidDetermineState += (sender, e) =&gt; { /*stuff*/ };
          //locationaManager.SomeSortOfLocationServiceEnableDisableEvent += (sender, e) =&gt; { /*stuff*/ };
      }
  }
  </code></pre>