//指定通知类型。
dummy
// stopAction.isDestructive = false // stopAction.isAuthenticationRequired = false
let notificationTypes: UIUserNotificationType = [UIUserNotificationType.alert, UIUserNotificationType.sound]
// Specify the notification actions.
let stopAction = UIMutableUserNotificationAction()
stopAction.identifier = Id.stopIdentifier
stopAction.title = "Dismiss"
stopAction.activationMode = UIUserNotificationActivationMode.background
// snoozeAction.isDestructive = false // snoozeAction.isAuthenticationRequired = false
let snoozeAction = UIMutableUserNotificationAction()
snoozeAction.identifier = Id.snoozeIdentifier
snoozeAction.title = "Snooze"
snoozeAction.activationMode = UIUserNotificationActivationMode.background
请检查上面的代码给我解决方案.....!