When scanning for the nearby devices I saw the following issue:
The onBatchScanResults returns an empty list while the onScanResult returns results.
My configuration is:
ScanSettings.Builder()
.setScanMode(ScanSettings.SCAN_MODE_BALANCED)
.setReportDelay(5000L)
.setUseHardwareBatchingIfSupported(false)
.setUseHardwareFilteringIfSupported(false)
.setLegacy(false)
.build()