I am scanning for a hardware device . When in foreground i can see the device. When i start the scanning in foreground,than move to background, than i turn on the hardware-BLE, the scanning stops , and the app can't detect the hardware .
If i open back the app to foreground, it then continue the scanning and finds the device.
I have set the keys :
<string>bluetooth-peripheral</string>
<string>bluetooth-central</string>
and also the background modes:
location updates
external accessory communication
uses BLE accessories
acts as BLE ACCESSORY
But nothing. the system won't let me detect devices on background,only foreground .
What am i missing ?