Does device scan work when phone is locked?
See original GitHub issueHello!
I use react-native-ble-plx to scan devices and it works well while the phone isn’t locked. When I lock the phone the scan stops. After device is unlocked scan works again.
So is it possible to scan BLE devices while the phone is locked?
I use LowLatency mode for scanning and phone with Android 10.
{ scanMode: ScanMode.LowLatency }
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Does device scan work when phone is locked? #791 - GitHub
Hello! I use react-native-ble-plx to scan devices and it works well while the phone isn't locked. When I lock the phone the scan...
Read more >Does NFC Work When The Phone Is Off Or Locked ...
It is technically possible to scan NFC tags while your phone is screen locked. However, enabling the NFC reader without unlocking can cause...
Read more >NFCScreenOff mod enables scanning NFC tags when your ...
NFCScreenOff is a Magisk module that enables scanning NFC tags even when your Android smartphone is locked. Read more about it here!
Read more >Scan for peripherals when device is locked - Stack Overflow
As a bluetooth-central background app, you should be able to continue scanning when the device is locked, but only if you are scanning...
Read more >Unlock your Android device to verify it's you - Google Support
You can only verify it's you with your fingerprint that already unlocks your device. Make sure you're using the same finger you normally...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Filters adequate for the advertisement of the peripheral you are interested it. You cannot “scan everything” in the background because it may be used to locate the user.
@dariuszseweryn, I added android.permission.ACCESS_BACKGROUND_LOCATION to AndroidManifest.xml and enabled “Allow all the time” in settings but it seems to have no effect. What filters and permissions should I add to make it work?