CentralManager: didDiscover never called in the background

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

+7
ios10 bluetooth bluetooth-lowenergy
source share

No one has answered this question yet.

See related questions:

23
Core Bluetooth advertises and scans in the background
3
BLE: UUID Ads from iOS Background App
2
Could not scan through CBCentral Manager with service identifier for iBecon Signal
one
didDiscoverPeripheral not called in background
0
How to send messages to a connected Bluetooth device in iOS in the background
0
I cannot connect a Bluetooth peripheral when the iOS application is in the background for a long time
0
Wake app from background while BLE interacting
0
Will the application never pause after entering the background?
0
CoreBluetooth Ads Don't Start
0
Call ViewController when applicationDidEnterBackground in AppDelegate

All Articles