title: UNUserNotificationCenter - schedules only one event in the for loop, swift 2.3, iOS10,
body: <p>I am trying to schedule series of notifications in the for loop. After scheduling I am reading all pending notifications (just for testing purpose). </p>
  
  <p><strong>Scheduling (called from for loop):</strong></p>
  
  <pre><code>func scheduleNotification (event : Meeting, todaysBadgeCounter: Int) {
   if #available(iOS 10.0, *) {
  
          let minutesBefore = CallIn.Settings.notifyNumberOfMinutesBeforeEvent
          let notifyBefore = UNNotificationAction(identifier: NotificationActions.NotifyBefore.rawValue, title: "Notification", options: [])
          let category = UNNotificationCategory(identifier: "CALLINNOTIFICATION", actions: [notifyBefore], intentIdentifiers: [], options: [])
  
  
          UNUserNotificationCenter.currentNotificationCenter().setNotificationCategories([category])
          let content = UNMutableNotificationContent()
  
          content.title = NSString.localizedUserNotificationStringForKey(event.title, arguments: nil)
          if(minutesBefore &lt;= 1){
              content.body = NSString.localizedUserNotificationStringForKey("Your \(event.title) is about to start", arguments: nil)
          }else{
              content.body = NSString.localizedUserNotificationStringForKey("You have \(event.title) in \(Int(minutesBefore)) minutes", arguments: nil)
  
          }
          content.sound = UNNotificationSound.defaultSound()
  
          //interval in seconds from current point in time to notification
          let interval : NSTimeInterval = NSTimeInterval(secondsFromNowTo(event.startTime.dateByAddingTimeInterval(-minutesBefore * 60)))
  
  
          let trigger = UNTimeIntervalNotificationTrigger.init(timeInterval: interval, repeats: false)
          let request = UNNotificationRequest.init(identifier: "sampleRequest", content: content, trigger: trigger)
  
          //only schedule in the future
          if(interval &gt; 0){
              UNUserNotificationCenter.currentNotificationCenter().addNotificationRequest(request, withCompletionHandler: { (error) in
                  // handle the error if needed
                  log.error(error?.localizedDescription)
                  print("SCHEDULING &gt;=iOS10:", event.title, ", interval:", interval)
              })
          }
  }
  </code></pre>
  
  <p><strong>Reading:</strong></p>
  
  <pre><code>func printScheduledNotifications() {
      if #available(iOS 10.0, *) {
          print("printing scheduled notifications &gt;=iOS10")
          UNUserNotificationCenter.currentNotificationCenter().getPendingNotificationRequestsWithCompletionHandler({ (notifications) in
              print("count", notifications.count)
              for notification in notifications{
  
                  print(notification.description)
              }
          })
      }
  </code></pre>
  
  <p>"notifications" in the latter method is UNNotificationRequest array, but the count of this array returns always 1, and the scheduled event - is only my last event of the list that I'm feeding to the schedule method. </p>
  
  <p>During scheduling I am also printing all events, that are scheduled and the interval (to be sure it's in the future), and I do get proper log of all events I want to schedule, but somehow it looks like each next event overwrites the previous one. What am I doing wrong? </p>