我基本上想从我的iOS应用程序搜索附近的BLE设备,即使该应用程序在后台也是如此。iOS提供了这个方法://_cbcManager是CBCentralManager的对象[_cbcManagerscanForPeripheralsWithServices:niloptions:[NSDictionarydictionaryWithObject:[NSNumbernumberWithBool:NO]forKey:CBCentralManagerScanOptionAllowDuplicatesKey]]此方法将扫描所有服务(因为参数中提供了nil)。但这在后台不起作用。当应用程序在后台运