title: iBeacon: App awake based on your current location
body: <p>What is the meaning of this?</p>
  
  <p><a href="https://i.stack.imgur.com/P8ner.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P8ner.png" alt="enter image description here"></a></p>
  
  <p>I have written an app that has registered for a specific iBeacon region monitoring. I run the app once so it can register to iOS the monitoring however, once I terminate the app and try to test it (<strong>testing if the app gets launched by iOS when entering beacon proximity</strong>)</p>
  
  <p>I notice that the App is sometimes woken up by iOS successfully (I added a UILocalNotification that is triggered when the app is woken up with the option key equal to <strong>UIApplicationLaunchOptionsLocationKey</strong>. I have chosen notify on entry and notify on exit to the monitoring preferences.</p>
  
  <p>However when I switch off the beacon and I double tap the home button it show the figure above. It stays like this for a long while while the beacon is on but without triggering the notification. It does trigger the notification sometimes (but not always).</p>
  
  <p>Why would iOS keep showing me the App even if it does not apparently get launched? Is it guaranteed that the app gets always launched when entering a beacon region? (I waited for a long 20 minutes.. sometimes I get the notifications with a past date all together.. e.g. 30 minutes later I get notifications with a due date of 30 minutes ago...)</p>
  
  <pre><code>if ([launchOptions objectForKey:UIApplicationLaunchOptionsLocationKey]) {
      [[DebugNotificationHandler sharedHandler] triggerMessage:@"AppDelegate: Triggered following iBeacon range"];
  </code></pre>