Sometimes I cannot scan for Beacon or BLE in the background on iPhone

Hello.

I am trying to create an app that detects the beacon and makes a BLE connection when the beacon is turned on while the iPhone is in sleep mode, without the app being on the app switcher.

However, there are often times when beacons cannot be detected or BLE connections cannot be made. From what I've found, it's because iOS limits beacon/BLE scanning for security reasons.

I know it's impossible, but is there any way to remove this restriction on scanning?

If you can't, we would like to know when iOS places restrictions on scanning.

If you can't, then we would like to know when iOS places restrictions on scanning and when those restrictions are lifted.

Thank you very much.

Development Environment: iPhone8 (iOS 13.7), iPhone13(iOS 16.0.3), macOS Monterey, MacBook Pro 2020(Intel Core i5), Xcode 14.2

Sorry, I solved it myself. This ensures that the scan is performed.

let UUIDs: [CBUUID] = [systemServiceUUID]
let scanOptions = [CBCentralManagerScanOptionAllowDuplicatesKey: true] 
centralManager.scanForPeripherals(withServices: UUIDs, options: scanOptions)
Sometimes I cannot scan for Beacon or BLE in the background on iPhone
 
 
Q