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
[BUG] NET MAUI on iOS, I read a wrong name connectiong to a Linux device #829
Comments
Hi @acaliaro, I'm the friendly issue checker. |
👍 |
Are you only looking at the advertisements, or are you connected to the device while the name changes? I'm not sure which effect such an alias has on the advertisements. Could you check what kind of data the device is advertising before and after the change? |
Hi, on first discovery we tried to cast IDevice to CBPeripheral, which has the name property containing the name, with the unexpected value. Inspecting the istance of IDevice we can see that there's a property called AdvertisementRecors, but unfortunately is empty. We are not connected to the device, until it is found by his name during the scan. |
Hi @janusw I have tried 3.1.0-beta.3 the problem seems to be present, although it seems to me that sometimes the name has been returned correctly.. |
@janusw I think the problem is here
I think you should have a separate property (LocalName ???) to store the advertisementdata local name so that the developer can decide which one to use |
I think it is been solved using _adapter.DeviceAdvertised |
To help us fix your issue, please provide the information in the below template. If something causes a crash, provide as much information as you can gather.
Just imagine: we do not know what you are doing!
Steps to reproduce
On a Linux machine, they change the name of the bluetooth device, the "Name" property is not changed but an "Alias" is created. Using the library on an iOS device (iPhone), the library continues to read "Name" and it is not possible to recover the value of "Alias", which is instead recovered if an Android device is used.
Expected behavior
The library should read the Alias instead of the Name, or return the Alias at least in the native part. By downloading some third-party iOS apps, the Linux device is found and the Alias content is displayed
Actual behavior
Only the Name is returned, which however cannot be unique between different Linux
Crashlog
Configuration
Version of the Plugin: 3.1.0-beta.2-10-gf6b048a
Platform: iOS 17.3
Device: iPhone 12
The text was updated successfully, but these errors were encountered: