-
Notifications
You must be signed in to change notification settings - Fork 354
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 issue #238
Comments
Do you have any devices advertising as Bluetooth LE devices? |
Hi ! Same for me, trying to scan for my Rasp 2 from my Nexus 5 on which the app is running. But nothing appear in console.log :-/ Thx |
Android 6.0 requires location permissions to find unpaired devices. You will need to use hasPermission and requestPermission functions to ensure the permissions are good. Also, I'm not familiar with Raspberry Pi. Does it support Bluetooth, Bluetooth LE or both? |
Thx for your quick answer ! |
Hi !
So next step, pairing... |
Anyone still having issues? |
Yes I just tried today with API23, added requestPermission and everything, but no device appeared (although I have 3 ibeacons around me, perfectly detected on other apps) (HTC One M8 with Android 6.0) here is the code I'm using : ` var scan = function() {
` nothing fancy, just checking for bluetooth, permission and go for scan. |
You need to check hasPermission in addition to IsLocationEnabled |
I already use requestPermission to ask for permission (which is done correctly). full old code :
|
Found the problem ! Now, two questions :
Thanks |
Answering my own question, this should need a requestLocation function. |
There's no requestLocation function in the plugin. I looked into it previously but don't remember why I didn't include it. I can look into it again. |
After some more tests, I can confirm that Location is definitely needed now with API 23, and so a requestLocation function may be very useful. Location disabled : nothing returned |
Plugin has a requestLocation function as of v3.3.0! |
Thumbs up!
|
No device gets displayed, when scanning is done.
The text was updated successfully, but these errors were encountered: