• 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
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]

iOS firing an event in the future when an app is in the background


  • Subject: iOS firing an event in the future when an app is in the background
  • From: Alex Zavatone <email@hidden>
  • Date: Wed, 06 May 2015 12:08:00 -0400

iOS 7/8, Xcode 6.2

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.

I'm looking at using an NSTimer, performSelectorAfterDelay, or GDC's dispatch_after.

Looking at all the caveats for background modes, I'm not sure the best path to proceed that will waste the least of my time in getting this to work reliably.

The requirement is to call one selector with one NSString parameter.

If the app is getting CLLocation updates in the background, is it safer to manually perform a check within locationManager:didUpdateLocations even n seconds than to expect a background event to fire up to 24 hours in the future?

Thanks in advance,
Alex Zavatone



_______________________________________________

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


  • Follow-Ups:
    • Re: iOS firing an event in the future when an app is in the background
      • From: Jens Alfke <email@hidden>
    • Re: iOS firing an event in the future when an app is in the background
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • Next by Date: Re: iOS firing an event in the future when an app is in the background
  • Previous by thread: Re: NSNotification coalescing - which one gets through?
  • Next by thread: Re: iOS firing an event in the future when an app is in the background
  • Index(es):
    • Date
    • Thread