I am developing an app that sends and receives signals by directly connecting a Bluetooth device. In the foreground, the device scan and connection are implemented, but in the background, the Bluetooth scan does not work. centralManager(_ central: CBCentralManager, didDiscover does not detect devices. Also Added bluetooth-central, bluetooth-peripheral to lnfo.plist.
How can I scan bluetooth in the background?