Skip to content
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

Xamarin.iOS - Client.PairedDevices does not return the devices #405

Open
Ekta-M-Patel opened this issue Mar 19, 2024 · 2 comments
Open

Xamarin.iOS - Client.PairedDevices does not return the devices #405

Ekta-M-Patel opened this issue Mar 19, 2024 · 2 comments
Labels

Comments

@Ekta-M-Patel
Copy link

Hi,

I am using this library to get a list of paired devices In my Xamarin.Forms app. I can get a device list in Android but not in iOS.
when I call to BluetoothClient.PairedDevices, it returns values when on Android, but on iOS it's always empty.

Does this library have support for iOS or is there any mistake in the code?

I am attaching the code for reference.

BluetoothClient client = new BluetoothClient(); foreach (var device in client.PairedDevices) { GeolocationDevices.Add(device.DeviceName); }

@peterfoot
Copy link
Member

I think that this is because the iOS API is a bit different in that it shows devices previously connected by the app, rather than paired to the device. If it's not showing a device that you have previously successfully connected to please let me know.

@peterfoot peterfoot added the iOS label Mar 28, 2024
@Ekta-M-Patel
Copy link
Author

@peterfoot, It doesn't show the previously successfully connected device also. iOS always return a null/empty value in BluetoothClient.PairedDevices field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants