Foti Dim

Results 138 comments of Foti Dim

As I [read ](https://stackoverflow.com/questions/47546690/ios-bluetooth-pairing-request-dialog-can-i-know-the-users-choice) for iOS at least the answer is no. It could be indirectly inferred by trying to write some value and see if it succeeds or not....

@Sunbreak have you decided which way you want to go with this? I had a good experience with flutter_web_bluetooth.

I believe it's [this](https://github.com/microsoft/BluetoothLEExplorer/blob/579a918ed0d6181378111f9dfa27bbc8db902f05/BluetoothLEExplorer/BluetoothLEExplorer/ViewModels/CharacteristicPageViewModel.cs#L672-L676) part.

For some of the other platforms it seems that an in-app pairing API is not available. For iOS for example this is handled [automatically by the system](https://stackoverflow.com/a/33112945).

There is [createBond()](https://developer.android.com/reference/android/bluetooth/BluetoothDevice#createBond()) for Android.

Any peripheral that supports pairing would do. Headphones, car hands free kits, Xbox controllers are some examples.

@Sunbreak I was also facing this. I think it should be reopened.

Again one of the cases where [BluetoothLEExplorer](https://github.com/microsoft/BluetoothLEExplorer) works. You seem to be using `Advertisement().LocalName()`. In BluetoothLEExplorer I see `ShortenedLocalName` and `CompleteLocalName` with section values `0x08` and `0x09` respectively.

I only had partial success with this. Only some devices report their name back and some others just report a generic "Bluetooth" name. ![image](https://user-images.githubusercontent.com/2326415/159255378-c0000422-8309-4388-b409-3a602ad54ffc.png)

I will have to look into it. I can try to do that over the next days.