قالب وردپرس درنا توس
Home / IOS Development / The iOS BLE device contacts the iPhone when the application ends

The iOS BLE device contacts the iPhone when the application ends



I got a problem with BLE on iOS.
My case as below:
I am developing program link to device BLE 4.0. My problem is incoming call function. The scenario for this feature is after connection between device BLE and application, when the phone receives a phone call, the program will send data to the BLE and make it vibrate and flash the light.

Current I tried 4 cases below, but successful in 3 cases and the rest cases fail:

  • Case 1: (successful) When the app on Foreground -> Incoming calls -> App can send vibration and flashing light message to BLE- device

  • Case 2: (successful) When you click home and app, go to the background -> Incoming calls -> App can send vibrating and light flashing message to BLE device

  • Item 3: (successful) When click home and app go to the background and click on the Sleep button -> Incoming calls -> App can send vibration and light flashing message to BLE device

  • Case 4: (FAIL) When you double click on the Home button and Termianate app on background (remove app on task manager) -> Incoming calls -> App cannot send vibrating and light flashing message to BLE device

Has anyone received this same thing before and have some experience, idea for this help?

Thank you for your support!


Source link