dotintent / react-native-ble-plx

React Native BLE library
Apache License 2.0
3.07k stars 513 forks source link

Scan for devices with phone screen off (Android) #1172

Open hnrgtk opened 9 months ago

hnrgtk commented 9 months ago

Prerequisites

Question

My app scan for devices and gets advertisings from previously connected devices. I installed react-native-background-actions lib and it works when the app is not in the foreground but stops scanning when the screen is off. Is there any way to make the scan keep working?

EmmaZachara commented 9 months ago

Hi! Thanks for the question. We will investigate and get back to you soon.

Microwave-WYB commented 8 months ago

I can confirm this problem.

EmmaZachara commented 7 months ago

Hi @Microwave-WYB, @hnrgtk. We are still working on this and some other issues, so please hold on a bit longer.

Beckmann0o commented 2 weeks ago

Hello, I have the same problem. Is there a way to ensure that the library can perform ble scans even if the screen is off?