My app uses BLE (Bluetooth 4) to connect to a physical peripheral. My users and I have repeatedly encountered a bug where, at some point, the app stops connecting to the peripheral - you can see an indication that the BLE peripheral is discovered and the connection was established, but then few seconds after, the connection is dropped.
Things go back to normal only after restarting the iDevice.
I’ve done a very long work on checking it and researched this issue thoroughly, until I got to the conclusion that this must be a bug in iOS (tested with 7.1, but probably occurs on 8.0 as well).
You can imagine the negative affect such an issue has on my users’ experience, as BLE connection is essential to the product.
I'll appreciate your advice and suggestions on how to solve it.
Thanks!
Apple responded to my tech support request:
Bottom line(s):
So far for me it didn't happen with iOS 8, but on the other hand I can see posts about other Bluetooth issues, that are not necessarily related but who knows.
Full answer:
I’m responding to your finding that you and your customers find that after some point of use, iOS BLE fails to maintain a connection. You indicate that the problem was identified with iOS 7.1. There have been issue regarding iOS BLE which have been reported and have been fixed with iOS 8.0. To best determine whether your issue has been addressed, of course the simplest means would be to install iOS 8 and to see if the issue can be replicated. However, as you report that you can replicate the problem on your deivce with iOS 7.1 the first thing would be to obtain the Bluetooth Server profile, install it to your deivce, replicate the problem, then obtain a BLE Server log when the problem occurs. The profile will have the BLE server report additional logging details which can help to report issues that the server encounters. We can see if the issue is one which has been reported previously. Something to consider is that for all new bug report issues, Core Bluetooth engineering is requesting that all issues be regressed with the currently shipping version of iOS - that is 8.0. For customers with iOS 7.x, there will be no more iOS 7 updates - all software fixes and bug fixes will be with iOS 8. For this reason, only issues which are reported with iOS 8 will be investigated. You can obtain the BLE server profile from the Apple Developer bug report web page https://developer.apple.com/bug-reporting/ios/bluetooth/. The instructions for installing the profile and capturing the log, are presented on the web page. If you capture a log with iOS 7.x, you can send it to me for review. However, this will be somewhat of an academic exercise - to know if iOS solves the issue, or whether it persists, we will need to see if the issue occurs under iOS 8. Something to keep in mind, once you update a device to iOS 8, you will not be able to restore it to a previous version. I’m happy to review your results. If however, the problem persists under iOS 8, it’s best to submit a bug report to get Core Bluetooth engineering’s attention on this matter. You can submit a bug report using the Apple Developer bug report web page. - http://bugreport.apple.com
So it looks like the problem is solved with recent iOS update (either 8.0 or 8.1).