How to auto connect BLE device when in range in background?
mmswide opened this issue · comments
mmswide commented
Is there a way to auto connect BLE device in background when the app is in the background?
Martijn van Welie commented
The method autoConnectPeripheral() will work as long as the app is running. If your app gets killed often you need to use a ForegroundService....
mmswide commented
Thank you. I will try.
mmswide commented
I created foreground service and startScan in background task.
But I could get any response from BluetoothCentralManagerCallback.
Would you please help me how I can get this callback from startScan in background?
Martijn van Welie commented
I think your question is going beyond the scope of this library, so I am closing the issue