iOS 11 GM Notification Content Extension w/ Authenticated Action Does Not Call didReceiveNotificationResponse:completionHandler

Originator:shawn.kim
Number:rdar://34438557 Date Originated:9/14/2017
Status:Open Resolved:
Product:iOS Product Version:iOS 11 GM
Classification: Reproducible:Always
 
Area:
UserNotifications Framework

Summary:
If a notification content extension has an action that requires authentication and also defines the didReceiveNotificationResponse:completionHandler: in the view controller,  didReceiveNotificationResponse:completionHandler is not called from a locked screen.

The notification content extension disappears, but the notification banner remains on an unlocked lock screen. Subsequently responding to the notification from the unlocked lock screen works as expected.

Additional information here: https://forums.developer.apple.com/thread/86577 

Steps to Reproduce:
Create a notification content extension target for your app. Define the didReceiveNotificationResponse:completionHandler: function in the view controller of the notification content extension.

The corresponding category for the notification content extension should contain an action that requires authentication.

Attempt to respond to the notification from a locked screen with the action that requires authentication.

Expected Results:
After the fingerprint prompt, the notification should disappear, and the response should be forwarded to the main application.

Actual Results:
After the fingerprint prompt, the notification alert/banner remains on the unlocked lock screen, and the response is not forwarded to the main app. (Because didReceiveNotificationResponse:completionHandler: is never called).

Version/Build:
iOS 11 GM

Configuration:
iPhone 7 and iPhone 6 with iOS 11 GM. Should be reproducible on any device.

I've attached a demo project with the bug. It contains a "working" and "buggy" notification content extension. The "working" extension does not define didReceiveNotificationResponse:completionHandler:, and the "buggy" extension does.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!