UILocalnotification not getting alert on set time?
<p>I did this for getting alert on set time. But it's not alerting on time. I am setting time from datepicker. How I can solved this problem?  </p>

<pre><code>- (void)scheduleNotificationWithInterval:(int)minutesBefore {

      [[UIApplication sharedApplication] cancelAllLocalNotifications];

      UILocalNotification *localNotif = [[UILocalNotification alloc] init];
      if (localNotif == nil)
          return;
      NSLog(@"Date %@",datePicker.date);
      localNotif.fireDate = datePicker.date;
      localNotif.timeZone = [NSTimeZone defaultTimeZone];
      if ([freq isEqualToString:@"Daily"]) {
          localNotif.repeatInterval = NSDayCalendarUnit;
      }

      localNotif.alertBody = @"Radio Asia Alarm";
      localNotif.alertAction = @"Ok";

      localNotif.soundName = UILocalNotificationDefaultSoundName;

      NSDictionary *infoDict = [NSDictionary dictionaryWithObject:@"Radio Asia Alarm" forKey:@"Message"];
      localNotif.userInfo = infoDict;

      [[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
      [localNotif release];
}
</code></pre>

<p>Also I call this method where I click button after set time and date</p>

<pre><code>  [self scheduleNotificationWithInterval:1]; 
</code></pre>

<p>I am not getting alert. What I can do?</p>
