title: Debug app after device restart
body: <p>I have an issue on my iOS app that occurs every time I restart my iOS device (i.e. after turning it off and on again). I turn off the device with the app in foreground, restart it and then relaunch the app from the background.</p>
  
  <p>Obviously, the Xcode console doesn't show debug message when the device is turned off and I don't manage to know what happens to the app when the device is restarted. If I restart the app from Xcode, the issue disappears and everything works flawlessly again.</p>
  
  <p>Also, it seems that the app is relaunching itself from the background when the device restarts. Is it possible to prevent this behaviour and force the app to restart from scratch when I tap on the app icon or on its screen from the multitasking?</p>
  
  <p>Thanks.</p>