application:handleActionWithIdentifier:forRemoteNotification:completionHandler: does not get called on action on push notification

Originator:umangdinesh
Number:rdar://23732860 Date Originated:12/02/2015
Status:open Resolved:
Product:iPhone and Apple watch Product Version:iOS 9.1 and Watch OS 2.0
Classification:Bug Reproducible:some times
 
Summary:
When iPhone or apple watch responds to push notification action on locked screen, Application does not get invoked in background mode.

Steps to Reproduce:
1) Kill your app 
2) Send an Actionable  push notification to the device when the device is locked. 
3) iPhone or apple watch receives  the push notification.
4) Hit an action like Accept/Deny on the locked screen


Expected Results:
App should be launched in background mode to perform a short background task and hit call back
- application:handleActionWithIdentifier:forRemoteNotification:completionHandler: to process notification. App should get few seconds to process the notification using background task.




Actual Results:
Some times even if the user hits ACCEPT on notification when iPhone is locked or when user hits ACCEPT on notification on Apple watch, - application:handleActionWithIdentifier:forRemoteNotification:completionHandler: does not get called. Please note that this occurs unpredictably very few times, it seems that operating system 
is throttling actions taken on remote push notifications. 


Work around:
Unlock iphone and again lock it. After that if the app receives actionable push notification, it starts working again.   


Version:
9.1(13B143) and 2.0 (13S344)


Configuration:
iPhone 6 and Apple Watch

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!