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

startScanning won't find any devices when app is in background #198

Open
mbaush77 opened this issue Nov 13, 2020 · 3 comments
Open

startScanning won't find any devices when app is in background #198

mbaush77 opened this issue Nov 13, 2020 · 3 comments

Comments

@mbaush77
Copy link

I have a worker service that continues scanning for bluetooth devices when the app is no longer in foreground. I still get console logs from the worker when I put the app in background but the startScanning() method no longer returns bluetooth devices. (they are returned fine when the app is in foreground)

I'm assuming this is something handled at the OS level that needs to be configured or something like in the Info.plist keys maybe?

Thanks!

@farfromrefug
Copy link
Member

@mbaush77 never done that. You have to look at the native APIs docs

@LaKing
Copy link

LaKing commented Apr 17, 2021

I see the same behaviour. ...

@mbaush77 could you overcome it?

@farfromrefug
Copy link
Member

@LaKing you need to seaech on the native side but it might not be possible

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

No branches or pull requests

3 participants