title: Actions Not Showing For UILocalNotification Action
body: <p>I'm trying to add/schedule a local notification that provides two actions, like so:</p>
  
  <p><a href="https://i.stack.imgur.com/Xdfk8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xdfk8.png" alt="Example of iOS 10 notification actions"></a></p>
  
  <p>I'd also like the notification to show as a banner alert if I'm already using my phone, where I can just swipe down to see the actions.</p>
  
  <p>Right now, I'm successfully scheduling the notification and it does appear on the lock screen. However, when I swipe left, then tap "View", I don't see my actions. </p>
  
  <p>Here's my code:</p>
  
  <pre><code>func addNewNotificationWith (name: String, date: Date) {
      let message = "You will see this, but can't do anything! lol."
      let newLocalNotif = UILocalNotification()
      newLocalNotif.fireDate = dueDateWarningTime
      newLocalNotif.alertBody = message
      newLocalNotif.timeZone = TimeZone.autoupdatingCurrent
      newLocalNotif.soundName = UILocalNotificationDefaultSoundName
      newLocalNotif.category = "DueDates"
  
      let ignoreAction = getNotificationAction(identifier: "", btnTitle: "Ignore")
      let doneAction = getNotificationAction(identifier: "", btnTitle: "Done")
  
      let category = UIMutableUserNotificationCategory()
      category.identifier = "DueDates"
      category.setActions([ignoreAction, doneAction], for: UIUserNotificationActionContext.minimal)
  
      let settings = UIUserNotificationSettings(types: .alert, categories: [category])
      UIApplication.shared.registerUserNotificationSettings(settings)
  
      UIApplication.shared.scheduleLocalNotification(newLocalNotif)
      print("New notification added.")
  }
  func getNotificationAction (identifier: String, btnTitle: String) -&gt; UIMutableUserNotificationAction {
      let incrementAction = UIMutableUserNotificationAction()
      incrementAction.identifier = identifier
      incrementAction.title = btnTitle
      incrementAction.activationMode = UIUserNotificationActivationMode.foreground
      incrementAction.isAuthenticationRequired = true
      incrementAction.isDestructive = false
      return incrementAction
  } 
  </code></pre>
  
  <p>Can anyone see what I'm doing wrong and suggest how to fix it?</p>