title: IOS bluetooth app "Terminated due to signal 9" ONLY IN BACKGROUND MODE
body: <p>I am developing an IOS app in objective c which displays the heart rate from bluetooth BLE with a corresponding graphic. If the app runs in the foreground everything forks fine without any problem.</p>
  
  <p>But if the app goes in background mode the BLE measuring still continues (I am using "Uses Bluetooth LE accessories") but it is killed by the OS after some minutes or some seconds with the message "The app on iPhone quit unexpectedly --> <strong>Message from debugger: Terminated due to signal 9.</strong></p>
  
  <p>I can not find out why this happens only in background mode and not in the foreground when I see the app on the iPhone?</p>
  
  <p><em>The CPU and memory usage is the same in foreground or background it is about 130%  and 16 MB.</em></p>
  
  <p>The app is killed after 2:40</p>
  
  <p><img src="https://i.stack.imgur.com/kUSLg.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/okjK0.png" alt="enter image description here"></p>