It has been a while since I made it, but nothing much has changed in the AppInventor support for BLE as far as I know, except this permission stuff. The version of the micro:bit does not matter. You can even connect to a V1 micro:bit, although it will run out of memory much faster.
What I saw in you .aia is that you actually never connect to the micro:bit, so no wonder.
Try my tutorial here: App Inventor, Micro:bit and UART
It does exactly what you need, except that you may need to add permissions.
Something else to note: in makecode, go to settings->project settings and set: No Pairing Required.
That will save you a lot of headache.
Concerning the .hex app, I am not so sure it will work properly. You have to be very careful, or else it will run out of memory. Look at mine. It works.
I made some apps to control a robot car, but as said it is rather limited, momory is never enough.
Also it is a real pity that the BLE extensions were never properly updated, but if you use the really old one for the microbit (UART only) it will work.
Let us know how you go.
Side note - having the scanned addresses go straight into the List component could omit devices that have not been discovered yet. It's usually a good idea to use a Clock timer.
Sorry, I may be stupid, I intended to update my tutorial this morning, but where is the updated extension??
Another point, you may wonder what the webviewer running JavaScript is for in my example. It is needed because there is still no way to convert the Ascii you recieve from the micro:bit to characters AppInventor can handle. So, if you want to display your text in your label, you better use this.
I tried this (and removed the Location permission in the Manifest) to get rid of the Location permission / request, but it doesn't seem to work (on Android 12+):
Save the AndroidManifest.xml file with above changes.
Rebuild the APK file.
NOTE:
How to view the AndroidManifest.xml?
------ Download APK Studio Editor from the link Download APK Editor for PC and Mac – APK Editor Studio
------ Open APK Studio Editor and Open the APK file.
------ Click on the "Open Contents" tab
------ Folder will be opened and "AndroidManifest.xml" file can be seen.
How to Edit AndroidManifest.xml file?
------ Open the AndroidManifest.xml using any of the text editor.
------ Delete the lines related to Bluetooth related permissions.
------ Paste the below lines and save the changes.
I confirm that it s works for me . I changed the androidmanifest.xml , exactly as you perfectly explained us, with APK studio Editor .
I delete all line with mentionned bluetooth permission and changed at the beginning with your :
Thanks for letting know about this. I'm aware you have built your own extension for Bluetooth client. I believe you have enough info and means to solve the issue. Can you please help us.