簡體   English   中英

適用於ScanForPeripheral的狀態保留和還原iOS

[英]State Reservation and Restoration iOS for ScanForPeripheral

  1. 狀態保留和恢復可以做scanForPeripherals(withServices: nil, options: [CBCentralManagerScanOptionAllowDuplicatesKey : true]嗎?

  2. 我的目的是從后台掃描,連接並寫入外圍設備。 到目前為止,我知道在后台掃描需要特定的服務UUID。 沒有定義服務UUID,還有另一種方法可以在后台進行掃描嗎?

我正在使用iBeacon和Swift 3

不幸的是,不,如果您不提供Service UUID,除非您的應用程序位於前台,否則CoreBluetooth不會提供回調。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM