[英]State Reservation and Restoration iOS for ScanForPeripheral
can State Reservation and restoration do scanForPeripherals(withServices: nil, options: [CBCentralManagerScanOptionAllowDuplicatesKey : true]
? 状态保留和恢复可以做
scanForPeripherals(withServices: nil, options: [CBCentralManagerScanOptionAllowDuplicatesKey : true]
吗?
my aim is to do scan, connect and write to peripheral from background. 我的目的是从后台扫描,连接并写入外围设备。 So far, I got that scanning in background needs specific service UUID.
到目前为止,我知道在后台扫描需要特定的服务UUID。 Is there another way to do scanning etc in background without define service UUID ?
没有定义服务UUID,还有另一种方法可以在后台进行扫描吗?
I'm using iBeacon and swift 3 我正在使用iBeacon和Swift 3
不幸的是,不,如果您不提供Service UUID,除非您的应用程序位于前台,否则CoreBluetooth不会提供回调。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.