简体   繁体   English

iOS上是否有针对蓝牙低功耗(BLE)的工作后台服务?

[英]Is there work background services for Bluetooth low energy (BLE) on iOS?

I would like do coding in ios with Bluetooth low energy(BLE). 我想在蓝牙低功耗(BLE)的ios中进行编码。 i wanting to show notification of new BLE device while app background. 我想在应用程序背景显示新的BLE设备的通知。 is possible do it? 有可能吗? I bought BLE Device from sensor tag site. 我从传感器标签站点购买了BLE设备。

Yes, it is possible both in central and peripheral mode. 是的,在中央和外围模式下都可以。 You should declare the necessary permissions in your Info.plist and then you can search for one specific service in the background with the standard method scanForPeripheralsWithServices:options: of CBCentralManager Start with reading the docs of Apple . 你应该在你的Info.plist声明所需的权限,然后你可以用标准方法后台搜索一个特定的服务scanForPeripheralsWithServices:options:CBCentralManager与阅读开始苹果的文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM