I am working on an app that is connected to the BLE device using BluetoothGatt
.
I am successfully able to scan and connect with BLE devices in all devices like Samsung, Pixel, etc. I followed Android official BLE connection guide for scanning and connection.
But after updating my Pixel 2
to Android 10
, I am not able to connect my BLE device to Pixel 2. I also, seen the same issue was reported in Google issue tracker.
To fix this I tried clear Bluetooth app cache and Network reset but It works in some devices but not all.
Is there anything that needs to be done to fix this issue or is there a proper way to clear Bluetooth app cache and Network reset programmatically.
Or any other way to manage BLE connection in Android?
android.permission.ACCESS_BACKGROUND_LOCATION
– Donnettedonni