I'm using Ionic Framework, Angular and Typescript to scan for BLE devices. I'm doing a scan every 3 minutes and waiting for 1 minute before each scan.
I'm using the Background Mode plugin, BLE plugin, PowerManagement plugin, Geolocation plugin from Ionic native.
The app works perfectly while scanning in Foreground mode.
When I try to scan in Background mode the app works only on some devices, it doesn't scan on Samsung, OnePlus, and some Redmi devices.
The BLE.startscan([]) is never called in Background mode. How can I fix that?
I don't see any errors using logcat.
I added the new permissions for Bluetoth - BLUETOOTH_SCAN, BLUETOOTH_CONNECT and BLUETOOTH_ADVERTISE
I'm stuck. I will be really grateful if someone can help me.
Thank you