Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Huawei Bluetooth behaviour in background scanning

I'm currently working on an background beacon scanning service (foreground, separate process). I found out that different producer like samsung override the default android behaviour regarding bluetooth scanning in sleep mode.

Currently I have problems with HUAWEI devices. It seems that HUAWEI stops bluetooth scanning completely when device goes to sleep mode.

I couldn't find any posts about HUAWEI bluetooth problems so far, so I'm curious about if anyone made similar experiences?

Thank you

like image 458
Fintasys Avatar asked Mar 08 '23 18:03

Fintasys


1 Answers

Yes, the Android Beacon Library project is tracking this issue here: https://github.com/AltBeacon/android-beacon-library/issues/554

Huawei Android ROMs appear to have a custom bluetooth logic that limits how many times an app can start a bluetooth scan when the screen is off. If over some undocumented limit, scans will be blocked and no bluetooth detections can take place.

like image 100
davidgyoung Avatar answered Mar 10 '23 09:03

davidgyoung