title: CBCentralManager not calling didDiscoverPeripheral method when iPhone is locked
body: <p>I am working on an app that scans for a specific peripheral, ones peripheral is found it should send the small amount of data.</p>
  
  <p>App works in the foreground and also in background. I have also add this code in the plist</p>
  
  <p>UIBackgroundModes
  
      bluetooth-central
  
  When iPhone is locked and peripheral starts advertising, it doesn't call</p>
  
  <pre><code>func centralManager(central: CBCentralManager!, didDiscoverPeripheral peripheral: CBPeripheral!, advertisementData: [NSObject : AnyObject]!, RSSI: NSNumber!) {
  </code></pre>
  
  <p>I have done some research but couldn't find an answer.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks</p>