It also happens to me, when I try to load an old app that contains the BluetoothClient component, I get the message.
When I click "OK" ("Aceptar"), the application loads and works.
I can build the .apk, install it and it works.
If I Start a new project, and insert the BluetoothClient, I don't get the error message.
But Install App.... Same Error Message
Yejin_Choi:
Error Message
What happens if you Start a new application, and insert a BluetoothClient?
You are right. I looked the Android menu, and the Premission of the App did not enabled. When i allow it, that the app works good.
Sorry for my poor english.
1 Like
It's okay.... I am also can not well speaking english.... I am also pool english...
Anke
September 23, 2022, 12:05pm
13
Yejin_Choi:
Same Problem.
Try to add another (new) BluetoothClient component:
Then the error message should no longer appear (at least not for me).
Then reload the browser
remove the second (new) BluetoothClient
component
export the aia (remove the project in AI2)
and import the exported aia.
1 Like
When I open an old app that contains the BluetoothClient component, I get the error message, but the app loads.
If I close it and reopen it, it loads correctly.
Anke
September 23, 2022, 2:36pm
16
Try the reload the browser. Does the app open then without an error message?
So that's not the case for me. However, it works the way I've shown.
I have reloaded the browser, now FireFox, same effect, when I load an old app with BluetoothClient, I get the error message, but the application loads correctly.
If I close the app and reload it, it loads without error.
Anke
September 23, 2022, 3:07pm
18
Yes, and to get NO error at all (not even after restarting the browser or the computer), try the way I've shown.
Yes with your method you can avoid the error even if you reload the browser.
Try...
to insert a new BluetoothClient2, in an old app with BT.
Projects / SaveProject
Delete BluetoothClient2
Reload browser.
Do you get the error message?
However, if you install and use the app apk file on your mobile phone, you will receive a warning.
I don't want to go into the settings directly..
but I want to allow the Bluetooth license directly from the app inventory.
the problem still persists. old new doesn't matter. bluetooth client not working in android 12.
There are two bugs here that we need to resolve. One is a regression preventing the component from upgrading and the second is an issue with the update of the Bluetooth components to SDK 31. The former should be a quick fix (you can also hand edit the project file to "upgrade" since it is so trivial) but the latter is going to take a bit more work on our end.
Edit: these two issues are now being tracked.
opened 11:39PM - 26 Sep 22 UTC
issue: accepted
status: forum
affects: master
priority: high
regression
**Describe the bug**
<!--
Describe the bug in sufficient detail so that we c… an understand the issue. You should also describe the steps to reproduce the issue (below) so that we ideally can confirm it.
-->
[From the forum](https://community-appinventor-mit-edu.ezproxy.canberra.edu.au/t/bluetooth-conection-problem-fail-message-in-the-browser/66107?u=ewpatton): Loading an existing project with a BluetoothClient component causes an error about upgrading. I believe this was the result of a path being dropped in YoungAndroidFormUpgrader.java because versioning.js does have an upgrader for version 7 but the former does not. A property was added so the upgrade is a trivial one.
**Affects**
<!--
Please check off the part of the system that is affected by the bug.
-->
- [x] Designer
- [ ] Blocks editor
- [ ] Companion
- [ ] Compiled apps
- [ ] Buildserver
- [ ] Debugging
- [ ] Other... (please describe)
**Expected behavior**
<!--
Please describe what you expected to happen before you encountered the bug.
-->
The upgrade should proceed normally.
**Steps to reproduce**
<!--
Please describe the steps needed to reproduce the bug. If possible, please include a minimal example project that demonstrates the issue.
-->
1. Create a project with a BluetoothClient in nb189 and then load it into nb190.
opened 11:42PM - 26 Sep 22 UTC
bug
issue: accepted
status: forum
technical debt
affects: ucr
priority: high
**Describe the bug**
<!--
Describe the bug in sufficient detail so that we c… an understand the issue. You should also describe the steps to reproduce the issue (below) so that we ideally can confirm it.
-->
[From the forum](https://community-appinventor-mit-edu.ezproxy.canberra.edu.au/t/bluetooth-conection-problem-fail-message-in-the-browser/66107?u=ewpatton): When using blocks like Connect on Android 12, we must first ask for user permission for BLUETOOTH_* permissions. As a workaround, people can go into the settings app and grant permission that way.
**Affects**
<!--
Please check off the part of the system that is affected by the bug.
-->
- [ ] Designer
- [ ] Blocks editor
- [x] Companion
- [x] Compiled apps
- [ ] Buildserver
- [ ] Debugging
- [ ] Other... (please describe)
**Expected behavior**
<!--
Please describe what you expected to happen before you encountered the bug.
-->
When a Bluetooth request is made to scan, connect, or advertise, permission must be asked of the user on Android 12+.
**Steps to reproduce**
<!--
Please describe the steps needed to reproduce the bug. If possible, please include a minimal example project that demonstrates the issue.
-->
1. Create a simple bluetooth app on Android 12. Using any of the connection blocks will fail with a permission error.
1 Like
The issue related to the upgrade message has been fixed in nb190a. The other issue related to permissions is in progress.
The BluetoothClient/BluetoothServer permission issue should be addressed on this temporary test server: http://nb190a-bugfixes.ai2-ewpatton-temp.appspot.com/
My bluetooth application works well using this test server (I had above mentioned problems before). When will the problems be fixes in the standard server?