Skip to content
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 for devices with phone screen off (Android) #1172

Open
4 tasks done
hnrgtk opened this issue Feb 18, 2024 · 4 comments
Open
4 tasks done

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

hnrgtk opened this issue Feb 18, 2024 · 4 comments
Labels

Comments

@hnrgtk
Copy link

hnrgtk commented Feb 18, 2024

Prerequisites

  • I checked the documentation and FAQ without finding a solution
  • I checked to make sure that this issue has not already been filed
  • I'm sure that question is related to the library itself and not Bluetooth Low Energy or Classic in general. If that so, please post your question on StackOverflow.
  • I'm running the latest version

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
Copy link
Collaborator

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

@Microwave-WYB
Copy link

Microwave-WYB commented Mar 15, 2024

I can confirm this problem.

@EmmaZachara
Copy link
Collaborator

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

@Beckmann0o
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants