[英]background service for ble scan using cordova plugin
I have used https://github.com/randdusing/cordova-plugin-bluetoothle to scan the ble devices and able to extract required info. 我已经使用https://github.com/randdusing/cordova-plugin-bluetoothle扫描ble设备并能够提取所需的信息。 However, I need this to run this scan in the background for scanning only( as a service).
但是,我需要它在后台运行此扫描以仅扫描(作为服务)。 I read through several queries answered in this forum,( Cordova: Scan for iBeacons / BLE in background mode (iOS and Android) & cordova plugins bluetooth background service ) Android BLE Passive scan but they are more towards android native and IOS specific.
我阅读了在此论坛中回答的几个问题,( Cordova:在后台模式下扫描iBeacons / BLE(iOS和Android)和Cordova 插件蓝牙后台服务 ) Android BLE被动扫描,但它们更多地针对android native和IOS。
SO can the scan for BLE devices can be achieved as a background service using a plugin in? 可以使用插件将BLE设备扫描作为后台服务来实现吗?
Yes, 是,
I'm using 我正在使用
cordova-plugin-background-mode
and 和
cordova-plugin-ble-central
With those two plugins, yes, I'm scanning and connecting and read / write from the background. 使用这两个插件,是的,我正在扫描,连接以及从后台读取/写入。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.