title: Get EAAccessoryDidConnectNotification when app is in background (iOS)
body: <p>In my '<code>viewDidLoad'in</code> <code>ViewController.m</code>, I am registering to the <code>NSNotificationCenter defaultCenter</code> with '<code>EAAccessoryDidConnectNotification</code>' and '<code>EAAccessoryDidDisconnectNotification</code>'
  When my app is active in foreground, I get the notification, and respond in accessoryDidConnect. all works OK.
  But, when app is in background, how can I get such notification?</p>
  
  <pre><code>('EAAccessoryDidConnectNotification' and 'EAAccessoryDidDisconnectNotification')
  [Code below]
  </code></pre>
  
  <p>Thanks a lot.
  Dan</p>
  
  <pre><code>(void)viewDidLoad
  {
  
    [super viewDidLoad];
  
      [[NSNotificationCenter defaultCenter] addObserver:self
                                               selector:@selector(accessoryDidConnect:)
                                                   name:EAAccessoryDidConnectNotification
                                                 object:nil];
  
      [[NSNotificationCenter defaultCenter] addObserver:self
                                               selector:@selector(accessoryDidDisconnect:)
                                                   name:EAAccessoryDidDisconnectNotification
                                                 object:nil];    
  
      [[EAAccessoryManager sharedAccessoryManager] registerForLocalNotifications];
  }
  </code></pre>