Skip to content

Scanning callback sometimes is not getting called, for minutes. #553

Answered by peitschie
sanastasiou asked this question in Q&A
Discussion options

You must be logged in to vote

Oh.. wasn't aware that one could forever scan with low power mode.. In fact I would swear I read the exact opposite.. [...]

Yeah... that page is about 6 years old now, and definitely a lot has changed with Android's scanning behaviours since then 😅 . Definitely on modern Android, starting one long-running scan will perform much better than repeated launching a new scan (which quickly hits the throttling you've discovered).

Would u have to have some example of this continuously working scan mode ? And have you also tested that in iOS as well?

What you've written above is immediately usable for continuous scanning. The two key things is to

  1. scan in low power mode
  2. in your onBluetoothDevi…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pwespi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants