title: Scheduled Background task for daily at specific time in iOS
body: <p>I need some help for scheduling a Background task at daily basis at specific time in iOS.<br>
  I want to call a webservice at a specific time (let's say at 1.00 am ) and download all new data to app.<br>
  After searching a lot, I came to know about Notifications and timer to do such things but I have some questions</p>
  
  <ol>
  <li><p>Suppose I create scheduled job on server which sends a push notification at 1 am to device.<br>
  After receiving push notification can my app start automatically (without any user interaction with app icon or push notification)?<br>
  What should be happen when at 1 am the device has not an active internet connection or my app does not receive the push notification?  </p></li>
  <li><p>Suppose I create a Timer or a local notification to schedule the download at 1 am - it will call the web service only if my app is running</p></li>
  </ol>
  
  <p>How do I achieve this?<br>
  Please give me any suggestion. </p>