Bug 33302 - Core Bluetooth - Scan For Peripherals with Services
Summary: Core Bluetooth - Scan For Peripherals with Services
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 8.10
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-08-21 16:42 UTC by Bhupinder Singh
Modified: 2016-06-09 01:07 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Bhupinder Singh 2015-08-21 16:42:56 UTC
Platform:

Xamarin IDE Current Version :           5.9.5 (build 10)
Xamarin iOS Current Version :           8.10.4.46 (Business Edition)

Testing Device :                        iPad Mini
Testing Device Current iOS Version :    8.4.1


Hi There,

Background:

I have built an app which is using core bluetooth functionality of Xamarin.iOS. This app establish bluetooth connection with a third party BLE device.

Issue:

The issue is in the CoreBluetooth.CBCentralManager.ScanForPeripherals. I know what services the device is advertising however, after the compiler execute the ScanForPeripherals with services method - it does not call back Central Manager.Discovered Peripheral delegate event. I tested the device with LightBlue app from app store just to make sure that the bluetooth device is actually advertising the services and the result was "Yes". Could someone help here to troubleshoot this issue ? 

FYI - I have read the suggested already reported bugs. But, no one seems to be helpful with the app.

Thanks,
Bhupinder
Comment 1 Sebastien Pouliot 2015-08-26 17:55:36 UTC
It sounds like you could be mixing .NET events and ObjC delegates inside the same code [1]. The former is implemented using the later so mixing them is not supported.

If this is not the case then please attach a test case so we can duplicate your issue. Thanks.

[1] https://spouliot.wordpress.com/2012/03/26/events-vs-objective-c-delegates/
Comment 5 Rolf Bjarne Kvinge [MSFT] 2015-09-01 07:00:04 UTC
Can you try this project and see if it works for you: https://github.com/rolfbjarne/bleexplorer? It's known to work with other devices.
Comment 6 Sebastien Pouliot 2016-06-09 01:07:50 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!