I am trying to use a BluetoothLowEnergy plugin for Cordova to scan for nearby iBeacons. I have tried both the cordova-plugin-eddystone
evothings.eddystone.startScan(successCallback, errorCallback)
and the BluetoothLE
bluetoothle.startScan(_successCallback, errorCallback, {allowDuplicates: true});
However I can't make the scan to work on background.
I enabled background capabilities in the .plist with Xcode, specifying that the app utilizes BLE sensors.
Moreover, I use the de.appplant.cordova.plugin.background-mode plugin, executing after the deviceReady event the function:
cordova.plugins.backgroundMode.enable();
However the scan just pauses when entering in background mode. No matter what. Is there any alternative way? Is the background mode disabled in the eddystone plugin? Thank you