Scan for BLE devices in the background?
Posted: 00:19, 10 Nov 2015
Wondering if the Evothings cordova BLE plugin is capable of running in the background and discovering devices while in background mode?
I updated my Cordova project to run in the background and I can confirm it's running via some console.logs in the code.
I also update the Objective C code in the BLE plugin to NSLog when it discovers a BLE device.
Interestingly enough, when the app goes into the background, the BLE NSLogs stop, while the logs from the Corodva app continue. The app continues to run, but no BLE devices are showing as discovered in the background.
I was wondering if this is just not possible, or if there is some config, etc. that I might need to do.
I already have the bluetooth-central entry in the plist for required background modes, but it doesn't seem to be helping.
BTW - I know this has some App Store implications, but right now I'm just trying to see if I can get it to work in any way.
I updated my Cordova project to run in the background and I can confirm it's running via some console.logs in the code.
I also update the Objective C code in the BLE plugin to NSLog when it discovers a BLE device.
Interestingly enough, when the app goes into the background, the BLE NSLogs stop, while the logs from the Corodva app continue. The app continues to run, but no BLE devices are showing as discovered in the background.
I was wondering if this is just not possible, or if there is some config, etc. that I might need to do.
I already have the bluetooth-central entry in the plist for required background modes, but it doesn't seem to be helping.
BTW - I know this has some App Store implications, but right now I'm just trying to see if I can get it to work in any way.