1

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?

Community
  • 1
  • 1
need info
  • 21
  • 3

1 Answers1

1

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.

Hoon
  • 637
  • 5
  • 10
  • Hi, Thanks. Appreciate if you could guide how could you acheive this. For me , the scanning stops as soon as it finds the first device. – need info Nov 06 '16 at 06:01
  • When I try to use this plugin getting error:plugin de.appplant.cordova.plugin.backgroundmode@0.6.4 not found locally. note plugin registry was disabled by --noregistry. any inputs? – need info Nov 07 '16 at 16:12