title: Can't get a notification when connecting an external accessory to the 3.5 mm headphones jack
body: <p>I've been trying to get this to work for a while now.
  I've done everything they say in the documentation and still got nothing.</p>
  
  <p>This is the code in my app delegate that registers for local notifications:</p>
  
  <pre><code>- (void) registerForLocalNotifications {
  [[NSNotificationCenter defaultCenter] addObserver:self
                                           selector:@selector(_accessoryConnected:)
                                               name:EAAccessoryDidConnectNotification
                                             object:nil];
  
  
  [[NSNotificationCenter defaultCenter] addObserver:self
                                           selector:@selector(_accessoryDisconnected:)
                                               name:EAAccessoryDidDisconnectNotification
                                             object:nil];
  
  [[EAAccessoryManager sharedAccessoryManager] registerForLocalNotifications]; }
  </code></pre>
  
  <p>The above is called from applicationDidFinishLaunching.</p>
  
  <p>Here is the code of the connect/disconnect methods:</p>
  
  <pre><code>- (void) _accessoryConnected:(NSNotification *)notification {
            NSLog(@"_accessoryConnected"); }
  
  - (void) _accessoryDisconnected:(NSNotification*)notification {
  NSLog(@"_accessoryDisconnected"); }
  
  
  -(void) accessoryDidDisconnect:(EAAccessory *) accessory {
  NSLog(@"accessoryDidDisconnect"); }
  </code></pre>
  
  <p>Tried connecting the headphones that come with the iPhone and got nothing, same for my external accessory I want to integrate with the app.</p>
  
  <p>Please help,
  Thanks,
  Shaul.</p>