getPendingNotificationRequests
全部标签 解决方案代码:letcenter=UNUserNotificationCenter.current()print(center.getPendingNotificationRequests(completionHandler:{errorin//errorhandlinghere}))我的原帖:我正在尝试通过UNUserNotificationCenter获取待处理通知列表,因为UIApplication.shared.scheduledLocalNotifications已贬值。这是我正在使用的代码:letcenter=UNUserNotificationCenter.current
解决方案代码:letcenter=UNUserNotificationCenter.current()print(center.getPendingNotificationRequests(completionHandler:{errorin//errorhandlinghere}))我的原帖:我正在尝试通过UNUserNotificationCenter获取待处理通知列表,因为UIApplication.shared.scheduledLocalNotifications已贬值。这是我正在使用的代码:letcenter=UNUserNotificationCenter.current