• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS firing an event in the future when an app is in the background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >iOS firing an event in the future when an app is in the background (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • Next by Date: Re: NSNotification coalescing - which one gets through?
  • Previous by thread: Re: iOS firing an event in the future when an app is in the background
  • Next by thread: static analyzers says I'm leaking, I _think_ I'm not
  • Index(es):
    • Date
    • Thread