1

My BLE app running on background and scanning peripheral but the delegate method centralManager:didDiscoverPeripheral:advertisementData:RSSI: not callback. I've setted the value in Info.plist for UIBackgroundModes. Why? How to solve it?

rptwsthi
  • 10,094
  • 10
  • 68
  • 109
Roby
  • 179
  • 2
  • 14
  • This is the same question as [here](http://stackoverflow.com/questions/21749580/never-seen-anything-in-corebluetooth-framework-about-keeping-the-connection-aliv/22251385#22251385). – hlnd Mar 07 '14 at 13:33

1 Answers1

0

You cannot scan for peripherals in background mode, just open connection to peripherals and keep references to that peripherals.

After that you can call

[peripheral1 readRSSI];

And wait for CBPeripheralDelegate callback

peripheralDidUpdateRSSI:
l0gg3r
  • 8,864
  • 3
  • 26
  • 46