If I revert back to cordova-android 8.1.0 it works fine.
One other item of note is that when I first launch the app with cordova-android 8 it has a popup that has 3 options - use location services all the time, use location services only when using the app, and to not use location services. When I update to cordova-android 9 the first option (use all the time) is no longer part of the pop up. Don’t know if it is related or not.
If I have the following set in the config.xml the scan does not work. When the method is called it provides no feedback (i.e. no failure condition, nothing).
Looks like there is an open issue for this. A workaround is described there as well. It involves making a request for location information from the GPS before you start scanning with BLE.
For whatever reason, Ionic does not allow linking to github, so you’ll have to fix this link:
git hub . com /don/cordova-plugin-ble-central/issues/803
I have tested it as follow and it does appear to work: