title: Creating iPhone app that runs at startup and every X minutes
body: <p>I have written an Android app and am now porting to iPhone.  The Android version uses a broadcast receiver to get notified when the device is rebooted, and at that time it does a background synchronization with my web server.  Then it uses alarm manager to schedule another notification in X minutes (where X is set by the user in my app settings), which just does another background sync.</p>
  
  <p>Is this possible on the iPhone, and what APIs should I be looking at?  I'm programming with the latest XCode version (4.5 I think) on OSX Mountain Lion, and will be targeting iPhone mostly but also want something that works on iPad.  iPhone 4 (iOS 5.0) and above would be fine as most of my customers have newer devices.</p>
  
  <p>If not obvious, I'm very new to XCode, Mac OS, iOS, and Objective-C (still trying to use Alt-TAB to switch windows).</p>