Post

Replies

Boosts

Views

Activity

userNotificationCenter didReceive response returns an empty notification (watchOS)
I am trying to retrieve the original notification content from [userNotificationCenter(_:didReceive:withCompletionHandler:)] in watchOS. If the user pushes the notification the response object is complete and contains the notification. If the user presses the UNNotificationAction of the notification then the notification is nil. I have created a sample project SampleNotification project - https://github.com/jyviko/SampleNotification to reproduce the issue (see README.md on how to reproduce). Moreover, I am confirming that this pattern is not observed in iOS. PS: I am using XCode 12.0.1 and WatchOS7.0
6
0
1.2k
Oct ’20