32feet icon indicating copy to clipboard operation
32feet copied to clipboard

Unable to scan in Mac and ios In MAUI

Open akycdi opened this issue 2 years ago • 3 comments

I am using in the hand in an maui it is working in the windows and android but it is unable to scan the devices in the mac and ios platforms. I have added and given all the permissions that are required.

akycdi avatar Nov 23 '22 10:11 akycdi

The Apple platforms only support RequestDeviceAsync currently which presents a dialog to the user to choose an available device. Unfortunately, the code doesn't throw an exception but instantly returns an empty collection. I will get this corrected and the documentation updated with more clarity on platform differences.

peterfoot avatar Nov 23 '22 11:11 peterfoot

Hi Thanks for the reply can you give a example or point to the example where the scanning and connection and writing happens in ios and mac framework for maui

akycdi avatar Nov 24 '22 06:11 akycdi

In the Samples folder the Xamarin BluetoothClientApp project shows how to request a device and it then connects and enumerates the services and characteristics.

peterfoot avatar Dec 02 '22 16:12 peterfoot