-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scan occassionally returns no results until restarted #130
Comments
I managed to start a scan which returns no I got standard Any ideas on what I should try to be able to scan reliably? |
Android has a limitation of only few scans per 30 second. If you start and stop scanning number of times in short period of time it will not return and scan results until you wait a bit. |
Cannot rule it out entirely, but it's very unlikely, as the scanner got registered successfully (the |
I am currently trying to implement low-power background scanning using hardware batching, but on my device I sometimes get 0
ScanResult
s back after starting particular scan. Restarting the scan with identical settings fixes the issue and I get results normally.Here's how I configure and start the scan:
I am also able to reproduce the issue without using any scan filter, so it is not an issue in filter configuration. The issue is present with both
SCAN_MODE_BALANCED
andSCAN_MODE_LOW_POWER
(seems to be an issue even withSCAN_MODE_LOW_LATENCY
, but I wasn't able to reproduce it at least twice).Full example can be seen here.
Device used:
Model: Xiaomi Mi 9T Pro
Android: 11
I personally think this issue is going to be hardware-related, but I'm looking for any possible clues.
The text was updated successfully, but these errors were encountered: