Provide a mechanism for the app to suspend itself after a PushKit wakeup

Originator:btang1
Number:rdar://26352262 Date Originated:
Status:Resolved in iOS 11 Resolved:Yes
Product:iOS SDK Product Version:
Classification: Reproducible:
 
Summary:
When an app is woken up via PushKit push, the app stays awake for 27 seconds before being suspended. The PushKit API does not currently provide a way to say, "I'm done, suspend me now." APNS wakeups have this in the form of a completion handler that we can call when we are done with processing.  Having an equivalent mechanism with the PushKit API will help minimize battery usage and background running time.

Steps to Reproduce:
1. Send a PushKit push to device
2. Observe background running time of app

Expected Results:
App should only stay awake for as long as it needs to complete its processing.

Actual Results:
App stays awake for 27 seconds before being suspended.

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!