Relative Content

Tag Archive for swiftxcodeswiftuiwatchos

watchOS: userNotificationCenter(_:didReceive:withCompletionHandler:) not getting called

I’m developing a watchOS app where I need to handle notifications. I’ve implemented the UNUserNotificationCenterDelegate methods, but it seems that userNotificationCenter(_:didReceive:withCompletionHandler:) is not being called when a notification is received. while userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: is working perfectly.