title: How to detect when App moves to/from Suspended state?
body: <p>Is there an event that is fired, or any way of telling when my app moves in or out of the suspended state?</p>
  
  <p><strong>EDIT: I have read all documents related to AppDelegate events, and im aware there isn't any way, from that class to detect moving to suspended state.</strong></p>
  
  <p>Specifically, if my app is playing music in the background, and the music is paused, such as via a remote control, the music, and shortly afterwards all execution, suspends.
  When the user presses play again via the remote (or lock screen for example), the music starts again and execution continues (the app moves from suspended state to background state).
  Is there any way I can detect this? I need to close some services such as disconnect network sockets, stop bonjour services etc...</p>