Time-based background processing
| Originator: | amorya | ||
| Number: | rdar://13526325 | Date Originated: | 28-Mar-2013 04:23 PM |
| Status: | Open | Resolved: | |
| Product: | iPhone SDK | Product Version: | 6.0 |
| Classification: | Enhancement | Reproducible: | Always |
I'd like to request a new way of doing background processing. The app can request a wake-up at a certain date, with an API such as: [[UIAppliaction sharedApplication] scheduleWakeEventForDate:aDate identifier:@"anIdentifier"]; Then, when that date rolls around, the application is woken and the following method is called on the app delegate: - (void)applicationDidReceiveWakeEventWithIdentifier:(NSString*)identifier; The app then has the usual five seconds before it is killed for being in the background… but it can of course request to run a background task in the usual way, and thus gain up to ten minutes. This API is designed to be similar to how geofences work. Like geofences, the app won't need to request a specific background mode in the info.plist. Like geofences, there could be a limited number of wake events scheduled at one time.
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!
Duplicated: rdar://problem/13541951