I am doing centralManager.scanForPeripheralsWithServices([myServiceUUID], options: nil) in the background, but the corresponding
func centralManager(central: CBCentralManager, didDiscoverPeripheral peripheral: CBPeripheral, advertisementData: [String : AnyObject], RSSI: NSNumber)
never called.
When the application is in the foreground, everything works as expected. But when the application is in the background, this method is never called.
I have a bluetooth-central background.
What else can I lose?
EDIT: I uploaded the code to Github: https://github.com/haemi/BeaconBLEPoc
ios10 bluetooth bluetooth-lowenergy
swalkner
source share