title: Iphone Background task even after application in closed
body: <p>I keep reading the documentation and is just not making sense. So i decided to ask the question. Applications on the Iphone like the clock which has an alarm on it. When i set the alarm and close the application the application still notify's me at 4:30am eventhough i have closed the application. Now my understanding is that in order for something like this to work you would have to have it running on the background at all times. This is the part that does not make sense. If i completely shut down the app by double clickin my home button and then swiping up to get rid of the app, how does the app monitor time if is no longer running in the background?  Apple states that their are 5 states
  <strong><br>1-NOT RUNNING
  <br>2-Inactive
  <br>3-Active
  <br>4-Background
  <br>5-Suspended</strong> 
  <br>explanation of the above are located <a href="https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html" rel="nofollow">here</a>
  i would imagine that when i shut down an application the state is not running. However the <br>alarm application still comes on. HOW? this is killing me. Is there a special state that only native apps can have? 
  <br>Any information or further understanding would be greatly appreciated.</p>