title: {"msg":"Fence: onClientEventRegionState, invalid state", "regionState":"0"} in ios
body: <p>I want to notify the user when he/she reached to a particular floor by using estimote beacons. To do my task I developed my code like below:</p>
  
  <pre><code>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {
      // Override point for customization after application launch.
  
      self.beaconManager.delegate = self
  
      self.beaconManager.requestAlwaysAuthorization()
      let firstFloorRegion = CLBeaconRegion(
          proximityUUID: uuid,
          major: 2, identifier: "")
      firstFloorRegion.notifyOnEntry = true
      firstFloorRegion.notifyOnExit = true
      firstFloorRegion.notifyEntryStateOnDisplay = true
      self.beaconManager.startMonitoring(for: firstFloorRegion)
      self.beaconManager.requestState(for: firstFloorRegion)
  
      return true
  }
  func beaconManager(manager: AnyObject, didDetermineState region: CLBeaconRegion) {
  
      NSLog("didDetermineState Called")
  }
  private func beaconManager(manager: AnyObject, didEnterRegion region: CLBeaconRegion) {
  
      NSLog("DidEnterRegion Called")
  }
  private func beaconManager(manager: AnyObject, didExitRegion region: CLBeaconRegion) {
  
      NSLog("didExitRegion Called")
  }
  </code></pre>
  
  <p>for a few days it worked perfectly. But from last 2 days onwards its showing the error in xcode console like this:</p>
  
  <blockquote>
    <p><strong>[Client] {"msg":"Fence: onClientEventRegionState, invalid state", "regionState":"0"}</strong>.</p>
  </blockquote>
  
  <p>I can't understand what it means. I didn't find any solution in internet also. Help me to get out of it.</p>