BLE device keep connect with iPhone when application terminate
<p>I got a problem with BLE on iOS.
My case as below:
I'm developing application connect to device BLE 4.0. My problem is incoming call function. The scenario of this function is after connected between device BLE and application, when phone is received a phone call, my application will send data to BLE device and make it vibrate and light blinking. </p>

<p>Current I tried 4 case below, but successful in 3 case and the rest case is fail:</p>

<ul>
<li><p>Case 1:(successful) When app on Foreground --> Incoming call --> App can send vibrate and light blinking message to BLE device</p></li>
<li><p>Case 2:(successful) When click home and app go to background--> Incoming call --> App can send vibrate and light blinking message to BLE device</p></li>
<li><p>Case 3:(successful) When click home and app go to background and click sleep mode button --> Incoming call --> App can send vibrate and light blinking message to BLE device</p></li>
<li><p>Case 4:(FAIL) When click double on home button and termianate app on background (remove app on task manager)--> Incoming call --> App cannot send vibrate and light blinking message to BLE device</p></li>
</ul>

<p>Do anyone get same this case before and have any experience, idea for this help?</p>

<p>Thanks for your support!</p>