iOS firing an event in the future when an app is in the background
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