I have used https://github.com/randdusing/cordova-plugin-bluetoothle to scan the ble devices and able to extract required info. 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.
SO can the scan for BLE devices can be achieved as a background service using a plugin in?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.