Issue with BLE extension in Android 15

Hello everyone, my name is Massimo, and I’ve created a control unit that performs a series of operations both remotely (via SMS) and locally (via BLE).
I have a OnePlus 12, and until Android 14, everything worked perfectly: the Bluetooth connection was fast and error-free.
Since upgrading to Android 15, the connection happens instantly, but the app takes a few seconds to recognize it, resulting in an attempt to connect to a device that is already connected. On Android 14, the LED would stop blinking (connected status), and the app would simultaneously emit the connection sound while displaying the signal strength I implemented in my app.
On Android 15, the connection occurs instantly, but the app takes a "long" time to recognize it, often causing a connection error. I’m attaching two videos showing the behavior of the Bluetooth module and the app on both Android 14 and 15. Thank you all for your attention.


Which version of the BLE extension are you using?

2024.08.22

I noticed that in the "connected" function of the BLE extension, it enters twice. I added a counter: "if connected, label text (0) +1," and when it connects, it goes from 0 to 2. There is an abnormal behavior with Android 15.

help me please :frowning:

Hello everyone, my name is Massimo, and I’ve created a control unit that performs a series of operations both remotely (via SMS) and locally (via BLE).
I have a OnePlus 12, and until Android 14, everything worked perfectly: the Bluetooth connection was fast and error-free.
Since upgrading to Android 15, the connection happens instantly, but the app takes a few seconds to recognize it, resulting in an attempt to connect to a device that is already connected. On Android 14, the LED would stop blinking (connected status), and the app would simultaneously emit the connection sound while displaying the signal strength I implemented in my app.
On Android 15, the connection occurs instantly, but the app takes a "long" time to recognize it, often causing a connection error. I’m attaching two videos showing the behavior of the Bluetooth module and the app on both Android 14 and 15. Thank you all for your attention.

You will have more chance of someone being able to help you if you provide more information, like providing an .aia and depending on what BLE device you are using, an .ino file.

Hi, I didn’t provide the .ino file because it’s unnecessary; I’m using the BLE module as a serial module, and the issue I’m encountering is with the connection, not with communication. I didn’t provide the .aia file because I think it’s unnecessary. On the OnePlus 12 with Android 14, it works perfectly, but on the OnePlus 12 with Android 15, there’s a noticeable delay when connecting the smartphone to the device.

The issue could be related to different Bluetooth handling in Android 15, which might only be solvable by modifying the extension. If you think you can help, I can send you the .aia file

Usually problems like this are caused by using an obsolete BLE extension, but it seems yours is the latest. Other cause could be the handling of permissions in the later Android versions, although the latest BLE extension should sort that out for you.
Somehow you have a problem and somehow many others don't, so somehow there is something in your code that causes it, or maybe a problem in AppInventor, but if you provide no information that we can try to recreate or look at (except some bleeps in a video) then we have no way to help you. So, yes, send your .aia or if you can upload it here.

1 Like

Hello, thanks for your reply... The .ino file is not necessary. I’m attaching the .aia file, although I doubt the problem lies here. I’ve been using this app every day for 3 years, and the issues only appeared after updating to Android 15.
BRS.aia

I don't see any specific changes in android 15 regarding BLE. So it's really not known what is the reason for the changes being noticed. Not everyone has access to android 15, or hasn't received the update yet to be able to test it. Android bugs are also possible.

You're an extension collector:
image

Not all extensions survive into a higher Android version.

For the other Power Users, here's a cleaned up block image:

Your project contains 2 paid extensions
You are not allowed to share projects, which include paid extensions to the world...
I now removed your project

Taifun

If you have access to another Android 15 test device, test your app there as well. If the issue doesn't occur there, it might be a device-specific issue. Otherwise, it's an Android 15 issue that might have already been discussed on forums.

Yes, searching google I came across many reports of BLE issues in android 15. So it turns out it's an issue with android 15. Google, good job :+1:

1 Like

thank you all for the support, I apologize to taifun, I shared in good faith. sorry again

1 Like