iOS 15 breaks scanForPeripherals withServices?

I have an TestFlight-app that scans for BLE devices with a specific service:

central.scanForPeripherals(withServices: [serviceUUID], options: [CBCentralManagerScanOptionAllowDuplicatesKey:true])

This has been working for some time running Xcode 12 and iOS 14. However, after upgrading to Xcode 13 and iOS 15 I no longer get any didDiscover-callbacks.

If I change the call to scan for all peripherals I get the callback again:

central.scanForPeripherals(withServices: nil, options: [CBCentralManagerScanOptionAllowDuplicatesKey:true])

Is this a documented change, do I need additional entitlements or anything similar?

Answered by SvepJIM in 690570022

The mistake was on my end, turns out the device had changed its advertising format.

Accepted Answer

The mistake was on my end, turns out the device had changed its advertising format.

iOS 15 breaks scanForPeripherals withServices?
 
 
Q