title: orphaned UILocalNotification - confirmed
body: <p>I have an app I am working on with allows the user to set and remove UILocalNotifications. In the course of developing this I have added and removed UILocalNotifications for testing and it seems to be working.</p>
  
  <p>However I am seeing strange behavior where, after deleting my app from the device and running it again <em>without</em> setting any notifications, I will get a UILocalNotification. This notification was not set in this fresh install (checked through adding a breakpoint in my notification setup method).</p>
  
  <p>Is it possible that I have an orphaned UILocalNotification from a previous install (yes, it seems highly unlikely to me too).</p>
  
  <p>I've tried debugging this by setting the notification <code>alertBody</code> to something specific to each new install but this unique string doesn't get displayed in the alert. For example:</p>
  
  <pre><code>notif.alertBody = [NSString stringWithFormat:@"Alert for: %@", alertName];
  </code></pre>
  
  <p>Has anyone seen this sort of behavior before?</p>
  
  <p><strong>Update:</strong> Just confirmed orphaned UILocalNotifications: deleted the app from the device and ran the code below in my rootViewController on <code>viewDidAppear</code>. I get the following output in the Console:</p>
  
  <blockquote>
  <pre><code>2013-03-14 14:20:07.439 TestApp[16606:907] found alert: uigffhy
  2013-03-14 14:20:07.444 TestApp[16606:907] found alert: uigffhy
  </code></pre>
  </blockquote>
  
  <p>Where this user was from some previous install. Ugh.</p>
  
  <pre><code>NSArray *notificationArray = [[UIApplication sharedApplication] scheduledLocalNotifications];
  
  for (UILocalNotification *notif in notificationArray) {
      NSDictionary * info = notif.userInfo;
      NSString * name = [info objectForKey:@"sequenceName"];
      NSLog(@"found alert: %@", name);
  
  }
  </code></pre>