I am trying to retrieve the original notification content from userNotificationCenter(_:didReceive:withCompletionHandler:) in watchOS. I have managed to get the callback firing when sending a push notification from APNS, but unfortunately, the response object contains an empty notification:
<UNNotificationResponse: 0x600003bc0b40; actionIdentifier: start, notification: (null)>
I am using the example from Listing 1 from Apple's documentation.
UPDATE 10/19/20
I have created a sample project SampleNotification to reproduce the issue (see README.md on how to reproduce). I have noticed that the callback returns an empty notification only when the user presses the UNNotificationAction. Moreover, I confirmed that this pattern is not observed in iOS.
It appears that the same notification when received in userNotificationCenter(_:willPresent:withCompletionHandler:) is not empty!
I'd appreciate any feedback