I am looking for a solution to scan for BLE peripherals while the app is in background state through an iOS device. I have tried checking the capabilities, adding central and peripheral in info.plist for background process, creating a singleton CBCentralManager. It scans and connects to the BLE devices while in foreground but once it goes to background, it never calls the didDiscover method. Is there any solution fo the same? Thanks in advance.
My info.plist
<array>
<string>bluetooth-central</string>
<string>bluetooth-peripheral</string>
<string>fetch</string>
<string>location</string>
<string>processing</string>
<string>remote-notification</string>
</array>
I have also called the scanPeripheral with a service as you have mentioned.
centralManager.scanForPeripherals(withServices: [CBUUID(string: "6T5FFJJIL-B5A3-D839-LDKL-KJBLKJ33")])
I also tried using allow duplicates true/false for the options for scanPeripherals and also retrievePeripherals delegates too.
