gpt4 book ai didi

ios - ScanForPeripheral 状态保留与恢复 iOS

转载 作者:行者123 更新时间:2023-11-28 21:09:31 25 4
gpt4 key购买 nike

  1. 状态保留和恢复可以 scanForPeripherals(withServices: nil, options: [CBCentralManagerScanOptionAllowDuplicatesKey : true] 吗?

  2. 我的目标是从后台扫描、连接和写入外围设备。到目前为止,我知道后台扫描需要特定的服务 UUID。还有另一种方法可以在不定义服务 UUID 的情况下在后台进行扫描等吗?

我正在使用 iBeacon 和 swift 3

最佳答案

不幸的是,不,如果您不提供服务 UUID,CoreBluetooth 将不会提供回调,除非您的应用程序在前台。

关于ios - ScanForPeripheral 状态保留与恢复 iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44147547/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com