         
         UNUserNotificationCenter.current().setNotificationCategories([birthdayCategory])
     }
+    
 }

        self.registerNotificationCategory()
    }
    
    
    struct UserNotificationCategoryType {
        static let birthday = "birthdayCategory"
    }
    
    struct BirthdayActionType {
        static let happp = "action.happyBirthday"
        static let cancel = "action.cancel"
    }
    
    
    func userNotificationCenter(_ center: UNUserNotificationCenter,
                                willPresent notification: UNNotification,

            
            // 2
            let happyBirthdayAction = UNNotificationAction(
                identifier: BirthdayActionType.happy,
                title: NSLocalizedString("生日快乐!!", comment: ""),
                options: [.foreground])
            
