private int GetCurrentScheduledLocalNotifications() { UILocalNotification[] localNotifications = UIApplication.SharedApplication.ScheduledLocalNotifications; if (localNotifications == null) { return 0; } return localNotifications.Length; }