gpt4 book ai didi

android - 使用 cordova 插件进行 ble 扫描的后台服务

转载 作者:行者123 更新时间:2023-11-29 00:38:41 25 4
gpt4 key购买 nike

我用过https://github.com/randdusing/cordova-plugin-bluetoothle扫描 ble 设备并能够提取所需的信息。但是,我需要它在后台运行此扫描以仅进行扫描(作为服务)。我阅读了本论坛中回答的几个问题,( Cordova: Scan for iBeacons / BLE in background mode (iOS and Android) & cordova plugins bluetooth background service ) Android BLE Passive scan但他们更倾向于 android native 和 IOS 特定的。

那么可以使用插件将扫描 BLE 设备作为后台服务来实现吗?

最佳答案

是的,

我在用

cordova-plugin-background-mode

cordova-plugin-ble-central

有了这两个插件,是的,我正在后台扫描、连接和读/写。

关于android - 使用 cordova 插件进行 ble 扫描的后台服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40012108/

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