-
Notifications
You must be signed in to change notification settings - Fork 609
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() - local name not returned with iOS 16.4.1 #961
Comments
Hi @ASHBAW Interesting issue you're seeing there! What scan options are you using to initiate the scan? Unfortunately, I'm not seeing this same issue with iOS 16.4.1:
Do you know if this data is being included in the primary advertising packet or the scan response packet? For my own local testing, I'm using the primary advertising packet. If you haven't already tried it, does the behaviour change if you try ble.startScanWithOptions with
|
The data is being included in the scan response packet. And thank you for your suggestions. When I use your suggestion I do see the local name:
I am trying to understand why this works? Thanks again for you help. |
Looking at it more closely the first response does not have the local name in it but the next one does. Time stamps indicates this happening back-to-back. Any insight on this?
|
When report duplicates is disabled, iOS collates multiple advertising packets together and raises an event which includes all this information at once: https://developer.apple.com/documentation/corebluetooth/cbcentralmanagerscanoptionallowduplicateskey It's possible that a recent update (either in the OS, or in the build tools) has tweaked this behaviour slightly, and perhaps the advertising packets are no longer being stitched together the same way. But... it's just a guess! I think the comment here on the capacitor BLE plugin is likely correct: capacitor-community/bluetooth-le#528 (comment) |
Just collecting together other related issues from a similar code-base |
I have noticed that with the new iOS 16.4.1 that local name is no longer returned:
With an older version of iOS kCBAdvDataLocalName is returned
If I use a generic Bluetooth app and connect to my device I see a local name (serial number of our device in this case):
Is there anything that can be done to get this functionality back? We currently use the local name in app's scan list to differentiate between multiples of our device.
Thanks,
Brent
The text was updated successfully, but these errors were encountered: