title: iOS local notification userInfo always null
body: <p>I am trying to schedule a local notification with some custom data attached which I will then read when the user opens the app by clicking on the notification.</p>
  
  <p>I schedule the local notification like this:</p>
  
  <pre><code>UILocalNotification *notification = [[UILocalNotification alloc] init];
  notification.fireDate = [[NSDate date] dateByAddingTimeInterval:10];
  notification.alertBody = @"Hello World!";
  notification.userInfo = [[NSDictionary alloc] initWithObjectsAndKeys:
                           @"123123123123", @"beaconUUID",
                           [NSNumber numberWithInt:10], @"beaconMajor",
                           [NSNumber numberWithInt:20], @"beaconMinor",
                           nil];
  [[UIApplication sharedApplication] scheduleLocalNotification:notification];
  </code></pre>
  
  <p>Then in the code which handles the notification I do this:</p>
  
  <pre><code>- (void)onAppDidBecomeActive:(NSNotification*)notification
  {
      NSLog(@"Object = %@", [notification object]);
  
      NSDictionary* userInfo = [notification userInfo];
      NSLog(@"UserInfo = %@", userInfo);
  
      NSString* beaconUUID = [userInfo objectForKey:@"beaconUUID"];
      NSLog(@"Beacon UUID = %@", beaconUUID);
  }
  </code></pre>
  
  <p>My problem is that when I try to read the userInfo it always returns null. How do I read the userInfo dictionary from a NSNotification object?</p>
  
  <p>The three NSLog calls from the above code sample print the following in the console:</p>
  
  <pre><code>2015-02-04 14:11:52.690 BeaconPlugin[17050:724150] Object = &lt;UIConcreteLocalNotification: 0x7ff1d37199a0&gt;{
  fire date = Wednesday, February 4, 2015 at 2:11:51 PM Central European Standard Time, 
  time zone = (null), 
  repeat interval = 0, 
  repeat count = UILocalNotificationInfiniteRepeatCount, 
  next fire date = (null), 
  user info = {
      beaconMajor = 10;
      beaconMinor = 20;
      beaconUUID = 123123123123;
  }}
  2015-02-04 14:11:52.691 BeaconPlugin[17050:724150] UserInfo = (null)
  2015-02-04 14:11:52.691 BeaconPlugin[17050:724150] Beacon UUID = (null)
  </code></pre>
  
  <p>Which does show that the dictionary values are part of the user info. Anybody got any ideas what I am doing wrong?</p>