title: UILocalNotification isn't working at all
body: <p>I'm having some really irritating problems with <code>UILocalNotification</code>.  </p>
  
  <p>While finishing up an app that I've nearly completed, I noticed that I couldn't get local notifications to work, no matter what I tried.  </p>
  
  <p>So instead of wasting time, I decided to go back to basics and see if I could get them working at all.</p>
  
  <p>I created a new XCode view-based application, and replaced <code>-viewDidLoad</code> with this:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      UILocalNotification * theNotification = [[UILocalNotification alloc] init];
      theNotification.alertBody = @"Alert text";
      theNotification.alertAction = @"Ok";
      theNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:10];
  
      [[UIApplication sharedApplication] scheduleLocalNotification:theNotification];
  }
  </code></pre>
  
  <p>However, that also doesn't do anything at all.<br>
  I expected to see a notification 10 seconds after launching the app, but nothing appears.<br>
  Also, I tested this on both my iPhone and the simulator.</p>
  
  <p>Am I missing something really crucial here? (<em>I've searched through the Apple documentation and couldn't find anything as to why this is happening</em>)  </p>
  
  <p>Thanks</p>