Connection with iOS Bluetooth remains if application fails due to connection

I am facing a rather strange problem with my users: for some reason I can’t determine yet, my application crashes at some point when the Bluetooth connection is still active (my application is the central manager that connects to external peripherals devices).

The error is not related to the BT connection, but regardless of this, the connection remains forever after the application crashes.

I would like to make sure that the connection will not last forever or that it will be terminated if the application is forcibly closed by the OS or by any exception. In these cases, the application will not reach applicationWillTerminate, so I’m not sure that I can do more to make sure the connection drops.

Any suggestion on what I can do to make sure that the connection will be deleted at some point?

+4
source share

Source: https://habr.com/ru/post/1675097/


All Articles