title: Not receiving Bluetooth events when adding/removing devices on Windows
body: <p>I am trying to create a Bluetooth manager type class. The class will search through all paired and unpaired Bluetooth devices that are whitelisted in my application, and add them to an internal list of devices.</p>
  
  <p>I do this using the following code:</p>
  
  <pre><code>_deviceWatcher = DeviceInformation.CreateWatcher(_selector, 
                       null, DeviceInformationKind.AssociationEndpoint);
  </code></pre>
  
  <p>as well as by subscribing to the following events:</p>
  
  <pre><code>_deviceWatcher.Added += _deviceWatcher_Added;
  _deviceWatcher.Removed += _deviceWatcher_Removed;
  _deviceWatcher.EnumerationCompleted += _deviceWatcher_EnumerationCompleted;
  </code></pre>
  
  <p>If a Bluetooth device I have whitelisted is on, the device watcher finds the device. But if I turn the device off, I never get a "removed" event.</p>
  
  <p>If the device is off and I wait to receive the "enumeration complete" event, and then turn on the device, I never get the "added" event. </p>
  
  <p>I tried the Microsoft-supplied sample ("DeviceEnumerationAndPairing") but that sample acts the same. </p>
  
  <p>If I keep my program running and open up the Bluetooth settings, as shown below:</p>
  
  <p><a href="https://i.stack.imgur.com/ZZnjW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZZnjW.jpg" alt="http://imgur.com/a/CG6r1"></a></p>
  
  <p>then it works as expected and I get the "update" and "removed" events when turning off and powering off the device.</p>
  
  <p>Do I need to activate some sort of scanning routine to be able to detect Bluetooth devices that are available, and if so, how would I do that?</p>