Local notification does not show

Hello when i try the following code to show a local notification ( from the documentation ) nothing happend, someone has any idea why ?

// create the notification var notification = new UILocalNotification { AlertAction = "View Alert", AlertBody = "Your one minute alert has fired!", ApplicationIconBadgeNumber = 1, SoundName = UILocalNotification.DefaultSoundName }; NSDate.FromTimeIntervalSinceNow(1); // schedule it UIApplication.SharedApplication.ScheduleLocalNotification(notification);

Sign In or Register to comment.