Tearing my hair out tying to get push notifications to work in iOS10. Current setup:
in func application(_ application: UIApplication, didFinishLaunchingWithOp
Maybe not set UNNotificationCategory's intentIdentifiers, if code like this:
UNNotificationCategory* expiredCategory = [UNNotificationCategory
categoryWithIdentifier:@"TIMER_EXPIRED"
actions:@[snoozeAction, stopAction]
intentIdentifiers:@[]
options:UNNotificationCategoryOptionCustomDismissAction];
it will not called UNUserNotificationCenter's delegate methods, so you must set intentIdentifiers like this :
UNNotificationCategory* expiredCategory = [UNNotificationCategory
categoryWithIdentifier:@"TIMER_EXPIRED"
actions:@[snoozeAction, stopAction]
intentIdentifiers:@[@"a",@"b"]
options:UNNotificationCategoryOptionCustomDismissAction];