title: iOS: keep task running when in sleep mode
body: <p>I'm trying to develop a little app in order to learn coding for iOS. The app needs to check the battery level every minute and accordingly send an HTTP request. This works when the app is awake.</p>
  
  <p>How can I make it run when the device is put in sleep mode?</p>