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
The platform IDevice.Name is not the same #761
Comments
Hi @yureng, I'm the friendly issue checker. |
Debug trace, I found: CoreBluetooth.CBPeripheral.Name is "CompleteLocalName" Hence the line of code, Apple.Adapter.cs 35 var name = e.Peripheral.Name; "CompleteLocalName" is replaced with "ShortenedLocalName" maybe, Apple.Adapter.cs 345 : records.Add(new AdvertisementRecord(AdvertisementRecordType.CompleteLocalName, Should be "ShortenedLocalName" |
This might possibly be related to #703. There it was claimed that |
@yureng Why did you close the issue? What's the conclusion? Is it solved? Did you find a workaround? |
My Bluetooth device, its
CompleteLocalName: WaveCup,
ShortenedLocalName: Cup.
Steps to reproduce
Call the CrossBluetoothLE.Current.Adapter.StartScanningForDevicesAsync(..) to search for devices
On Android, IDevice.Name is: WaveCup,
On IOS, IDevice.Name is: Cup
Expected behavior
The IDevice.Name obtained by both platforms should be the same, both: WaveCup
Actual behavior
No!
Android is CompleteLocalName
iOS is ShortenedLocalName
Crashlog
none
Configuration
Version of the Plugin: v3.0.0
Platform: Android 8 / Android 13 / iOS 14.7.1 / iOS 15.4
Device: Samsung S8 / Samsung S22 / iPhone 8 / iPhone 8 Plus
on iOS, how can I get CompleteLocalName ?
Thank you!
The text was updated successfully, but these errors were encountered: