title: EAAccessoryDidConnectNotification doesn't fire
body: <p>I'm trying to learn about CoreBluetooth and External Accessories on iOS.</p>
  
  <p>First, I tried to see a list of devices connect to my phone via Bluetooth via <code>print(EAAccessoryManager.sharedAccessoryManager().connectedAccessories)</code> ... despite having 3 devices connected (according to the Settings app), I'm given an empty array.</p>
  
  <p>Next, I tried registering for connect / disconnect notifications:</p>
  
  <pre><code>import UIKit
  import ExternalAccessory
  
  class ViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          NSNotificationCenter.defaultCenter().addObserver(self,
              selector: "somethingConnected:",
              name: EAAccessoryDidConnectNotification,
              object: nil)
  
          NSNotificationCenter.defaultCenter().addObserver(self,
              selector: "somethingDisconnected:",
              name: EAAccessoryDidDisconnectNotification,
              object: nil)
  
          EAAccessoryManager.sharedAccessoryManager().registerForLocalNotifications()
      }
  
      func somethingConnected(name: EAAccessory) {
          print("here")
      }
  
      func somethingDisconnected(name: EAAccessory) {
          print("there")
      }
  }
  </code></pre>
  
  <p>... I receive nothing when I turn off/on (and thus disconnect/connect) a simple Bluetooth speaker I have.</p>
  
  <p><a href="https://stackoverflow.com/questions/23349974/eaaccessorydidconnectnotification-not-firing-until-bluetooth-accessory-picker-co">I <em>am</em> seeing this issue</a> (notifications not delivering until after the completion block of <code>showBluetoothAccessoryPickerWithNameFilter()</code> executes), but, generally, it seems like either:</p>
  
  <p>A) Something with iOS isn't working correctly</p>
  
  <p>B) I'm doing something wrong (the more likely of the two).</p>
  
  <p>Do I need to have a special MFI certificate installed to see a list of connected Accessories?  Why aren't notifications delivering?  </p>
  
  <p>Any recommendations / code examples are greatly appreciated.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Most importantly:  Still don't know why <code>connectedAccessories</code> doesn't work, so advice on this piece is greatly desired.</p>
  
  <p>That said, re-reading the Apple Developer documentation, I don't believe that it's correct / possible to use  <code>NSNotificationCenter.defaultCenter().addObserver</code> with these types of notifications.</p>
  
  <p>Specifically, the documentation states that EA notifications will not be delivered until <code>showBluetoothAccessoryPickerWithNameFilter()</code> is called -- e.g. the <code>EAAccessoryDidConnectNotification</code> and <code>EAAccessoryDidDisconnectNotification</code> are meant to inform the app about what the User did with the picker dialogue.  It doesn't seem that they are system-level notifications that can be picked up by <code>NSNotificationCenter</code>.</p>
  
  <p>Please correct me if this is an incorrect reading.</p>