What is the most energy efficient way to call a web service in the background under OS X?
On iOS I would use the fetch
background mode, but I haven't seen anything similar for OS X. Right now I have an NSTimer
that fires every 25 minutes, but the schedule gets messed up if the device goes to sleep while the timer is waiting to fire.
Before I write some code to deal with sleep/wake I wanted to see if OS X has a better mechanism for my use case. I have not found anything in the docs.