Bug 8872 - Default constructor for CBCentralManager() doesn't seem to wire up events
Summary: Default constructor for CBCentralManager() doesn't seem to wire up events
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 6.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-12-10 11:09 UTC by Kirk Klobe
Modified: 2012-12-10 12:26 UTC (History)
2 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 FIXED

Description Kirk Klobe 2012-12-10 11:09:08 UTC
Using the default CBCentralManager() constructor (var manager = new CBCentralManager()), I never have events fire. I need to derive from CBCentralManagerDelegate and use "new CBCentralManager(myCBDelegate, someDispatchQueue)" to get things working.

It's not clear from the documentation if this is the expected behavior, but I would assume it should work as does the CBPeripheral class, which operates as I would expect.

Version info:

MonoDevelop 3.0.6
Installation UUID: 319caa7d-88c1-4ad9-8d95-4023b5c4d0a6
Runtime:
	Mono 3.0.2 (master/9e7f206)
	GTK 2.24.11
	GTK# (2.12.0.0)
	Package version: 300020000
Apple Developer Tools:
	 Xcode 4.6 (2060)
	 Build 4H104c
Mono for Android: 4.4.41
Android SDK: /Users/kklobe/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1 (API level 7)
		2.2 (API level 8)
		2.3 (API level 10)
		3.1 (API level 12)
		4.0 (API level 14)
Java SDK: /usr
Monotouch: 6.0.7
Build information:
	Release ID: 30006000
	Git revision: 90a53d1938aa812828adda89fb92d27a716c1218
	Build date: 2012-11-28 16:52:33+0000
	Xamarin addins: cc24f8812681fe7bb1b25780dc04d93dca0ecc03
Operating System:
	Mac OS X 10.8.2
	Darwin kdk-mbp.ms.starkey.com 12.2.0 Darwin Kernel Version 12.2.0
	    Sat Aug 25 00:48:52 PDT 2012
	    root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Comment 1 Sebastien Pouliot 2012-12-10 12:26:06 UTC
This is a known issue (found by testing and also reported in the forums). 
This constructor has been marked as [Obsolete] for the next releases of MonoTouch.