After upgrading my Pixel XL to Android version 10.0 Bluetooth Low Energy (BLE) scanning will only work if i have Location turned on.
This has not been an issue until now and it's working on multiple devices running on Android 9.0, 8.0 and 6.0.1.
My app is only scanning in foreground using BluetoothLeScanner
startScan(List<ScanFilter> filters, ScanSettings settings, ScanCallback callback)
My app has FINE_LOCATION, COARSE_LOCATION and BLUETOOTH permissions, I've tried adding ACCESS_BACKGROUND_LOCATION permission but had no luck.
Are there stricter requirements in Android 10.0 for apps to scan for Bluetooth devices, i can't find anything about this and am hoping i don't have to ask users to turn on Location for my app to work.