Are you enabling the autoConnect parameter?
Also, from what I've seen, Android OS does not reconnect to bonded devices, except for A2DP ones…
However, if that is happening, maybe you could disconnect/unbond when you notice that the device is stuck or when your service gets killed?
Hey, the autoConnect parameter is not enabled. Yes I can do disconnect/unbond the device, the problem is that the user has to open the app, because we don't get any response in the background when the Android OS controls the connection and kills our app. Currently we have a little workaround in our device that kicks the smartphone after 2 seconds in a set up state, because we found out when Android OS tries to reconnect, it get stuck in this state. So we can handle it from our device and get the control back.
Is there a chance to disconnect to a device when the Android OS has the control of the connection ? Like to use the native Android LE methods ? Because if you use the SweetBlue disconnect or shutdown methods the connection is still there..