I am part of a team that is building a product line with a bluetooth device that requires us to use background bluetooth scanning. The device sends BLE packets periodically and the phone receives these packets and sends the data to our DB. We were able to get background bluetooth packets receiving (although sporadically) on the phone. However we cannot receive any packets while the app is backgrounded and the phone is locked.
So my question is two fold:
This is more critical: Is there any way to allow scanning while the app is backgrounded and the phone is locked?
This is secondary: Is there anyway to make background scanning more reliable/predictable so that we can get consistent readings in the background