Re: iOS firing an event in the future when an app is in the background
Re: iOS firing an event in the future when an app is in the background
- Subject: Re: iOS firing an event in the future when an app is in the background
- From: Jens Alfke <email@hidden>
- Date: Wed, 06 May 2015 09:59:32 -0700
> On May 6, 2015, at 9:08 AM, Alex Zavatone <email@hidden> wrote:
>
> I'm looking into performing an event in the future on iOS very likely when the app may be in the background, possibly up to 24 hours in the future.
Keep in mind that your app isn’t even running when it’s in the background on iOS. It’s not just that it’s threads are idle — the process is literally not being scheduled by the kernel to get any CPU time. That’s why in-process triggers like delayed-perform or dispatch_after are useless. The only things that will wake your app up in this state are _external_ events like local notifications or CoreLocation events, which will get the OS to unfreeze your process.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden