IOS cron jobs without server code

Is it possible to set (Linux) cron-like jobs in iOS apps (any version including iOS 8) that run on time regardless of whether it is open or in the app in the background?

For example, I would like to trigger a network GET operation from the iPhone at 11:00 and 23:00. If the task fails because the phone is turned off, this is normal.

+3


source to share


1 answer


Unable to access basic cron on device without jailbreak.

The closest will be UILocalNotification

- effectively a warning with a special fire date or Background Fetch

in iOS 7.



Background fetching allows your device to wake up at a programmed interval to perform some network activity. However, you were still at the mercy of the system.

http://www.appcoda.com/ios7-background-fetch-programming/

+6


source







All Articles