CBCentralManager的retrievePeripherals(withIdentifiers :)在iOS13下不产生CBPeripherals?

问题描述 投票:0回答:1

[我想知道是否有人在iOS 13下遇到了相同的问题,尽管有与系统配对的设备,但对CBCentralManager的retrievePeripherals(withIdentifiers :)的调用返回'null'?

与iOS13结合使用时,这似乎是一个特定的问题,因为如果我要在iOS 12下测试完全相同的代码,则会获得预期的配对设备。

[我今天已经看过苹果的core bluetooth documentation,但是我找不到iOS 13可能引起的偏差。

非常感谢任何信息!

xamarin bluetooth-lowenergy ios13 cbcentralmanager
1个回答
0
投票
基本上,此问题与以下事实有关:当我尝试初始化设备时,BLE堆栈尚未准备就绪(请参阅here
© www.soinside.com 2019 - 2024. All rights reserved.