I am developing an iOS 5 application using BLE that needs to track connections to a Bluetooth device for several hours. I use bluetooth-center in my plist for UIBackgroundModes, and it worked perfectly so that the application works as long as the device is connected. When it turns off, I try to reconnect it, and as soon as the device starts advertising again, it also works fine.
The problem is that if he disconnects and the user starts using other applications, he will not reconnect.
I tried to understand what the problem is, and as I understand it, when the memory level is low, my application cannot be killed if the device is connected, but it can (and will) be killed if nothing is connected. I see that my application is being dumped to iPhone's "LowMemory" logs.
How can I guarantee that my application will not be dropped?
source share