iPhone: UILocalNotification doesn't repeat the notification
<p>I am trying to use UILocalNotification in my project. I want my application to get notified every 5 seconds (non stop) in the background. I am trying the following code. It is notifying my application only for the first time after 5 seconds, after installed. I want it to be notified continuously every 5 seconds without stop. How can i achieve it?</p>

<pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.

    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];

    // Initiating notification at app startup
    [self InitiateLocalNotification];

    return YES;
}

-(void) InitiateLocalNotification
{

    NSDate *notificationDate = [NSDate dateWithTimeIntervalSinceNow:5];

    UILocalNotification *notify = [ [UILocalNotification alloc] init ];

    notify.fireDate = notificationDate;

    //notify.applicationIconBadgeNumber = 1;

    notify.soundName = UILocalNotificationDefaultSoundName;

    notify.timeZone = [NSTimeZone defaultTimeZone];

    //notify.alertBody = @"Local notification test";

    //notify.repeatInterval = 1;

    NSDictionary *infoDict = [NSDictionary dictionaryWithObject:@"notifiValue" forKey:@"notifiKey"];
    notify.userInfo = infoDict;

    // Schedule the notification
    [[UIApplication sharedApplication] scheduleLocalNotification:notify];
    [notify release];

}

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification 
{

}
</code></pre>
