Ionic Cordova Bluetooth LE Advertising on Android 14

|Hi guys l have a problem with Bluetooth LE using the Advertising on ionic Cordova project. The plugin is working fine on Android 13 if l upgrade to Android 14 i.e. API 34 it is not working on Advertising. Is there anyone having the same issue or has a solution for this. My environment is below:

Bluetooth LE is on version 6.4 required 6.8 but l haven’t updated the plugin

Ionic:

Ionic CLI : 7.2.0
Ionic Framework : @ionic/angular 6.7.5
@angular-devkit/build-angular : 13.0.4
@angular-devkit/schematics : 13.0.4
@angular/cli : 13.0.4
@ionic/angular-toolkit : 5.0.3

Cordova:

Cordova CLI : 12.0.0 (cordova-lib@12.0.1)
Cordova Platforms : android 13.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 11 other plugins)

Utility:

cordova-res : 0.15.4
native-run (update available: 2.0.1) : 1.7.2

System:

Android SDK Tools : 26.1.1
NodeJS : v20.15.1
npm : 10.8.1
OS : Windows 10|

Hi William. Thanks for the response, l have already updated the Bluetooth LE to 6.8 and is only working if l build the project with API 33 if l go higher API 34 its not working. There must b some compatibility issues as you say. I just need someone who can assist with an update for Android 14

What plugin are you using? That’s kind of important information :sweat_smile: If it’s the one William mentioned cordova-plugin-ble, it hasn’t been updated for 8 years.

A quick Google search, brought me to this plugin - GitHub - don/cordova-plugin-ble-central: Bluetooth Low Energy (BLE) Central plugin for Apache Cordova (aka PhoneGap). That is also the one ACP mentions - BLE | Awesome Cordova Plugins. Maybe try that one?

Hi Twestrick, l am using the Bluetooth LE Version 6.8.0. That’s the only one that advertise a device i amusing 2 devices one Broadcast and the other connects and sends data to the broadcasting one. The Bluetooth LE is the only one that can do this. The plugin needs to be updated to cater for Android 14

Another possible plugin is Capacitor Bluetooth Low Energy Plugin - Capawesome

Otherwise, you’ll probably have to fork the plugin you are currently using and make the changes required to support Android 14.

Hi Twestrick

We are not using Capacitor, we are using ionic angular with Cordova and this project we are not going to convert it to capacitor as it is a big project.