ble auto connect issue

Hello,

I am trying to create an Ble based application which is communicating with hardware accessory.

I am able to do all functionalities in foreground successfully and in background also(when app is connected to device).


But once app gets disconnected with that peripheral and app moves in background, it does not auto connect to the scanned peripheral ( it was autoconnecting sometimes but now completely off).


Any suggestion is appriciated.

ble auto connect issue
 
 
Q