-
Notifications
You must be signed in to change notification settings - Fork 88
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
Filtering on companyIdentifier does not work #854
Comments
I now get this error:
|
Ah, I see, this was with the |
@twyatt Stop the presses :) Seems like this change now breaks companyIdentifier filtering on Android. I now see a list of all devices |
This comment has been minimized.
This comment has been minimized.
Looks like a bug in Android. Fixed in https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/3188842. I don't have access to the associated bug, so I'll see what I can do to track down what version of Android this was fixed in so that I can try to figure out a workaround in Kable for it. |
Looks like bug still existed in Android 15. It is fixed in the |
Can you try the following (which is based on
It falls back to flow based (non-native) filtering when only company ID is specified on pre Android 16. |
I'll try, but when I tested companyId filtering prior to the changes made in #855 it worked on Android, I just tested with |
Does your device's advertisement have manufacturer data in addition to the company ID? If it doesn't (i.e. if the advertisement manufacturer data is an empty The hope is, that In other words, w/
..at least, that is the hope. 🤞 |
I actually do have manufacturing data in the advertisements 🤷 So no idea why it worked then previously. Anyway, I'll test the filter with |
Hmm, since your advertisement did have data in the manufacturing data, I'll dig deeper to try and figure out what is going on. |
Ok, I've made the necessary changes to keep the previous behavior (on Android) whilst applying the fix to the iOS and JS sides. You can give It essentially provides Android (pre 16) an empty This means that native scan filtering can still occur on Android when |
|
I am trying to filter devices by
companyIdentifier
this work for Android, but in JS I get an error.requestPeripheral options:
Error:
This code in "normal" WebBLE api works:
The text was updated successfully, but these errors were encountered: