mit-cml / appinventor-extensions

Source code of extensions published for MIT App Inventor
Apache License 2.0
85 stars 93 forks source link

App crashes when using BLE extension on both Android 12 and 13 #70

Open kikeelectronico opened 1 year ago

kikeelectronico commented 1 year ago

Describe the bug

When using the BLE extension, the app crashes on Android versions 12 and 13 because the lack of _bluetoothscan and _bluetoothconnect permissions.

Affects

Expected behavior

I am not sure if the permissions are requested by App Inventor in other cases. If thats the case: MIT AI2 Companion/build app requests for the required permissions.

Steps to reproduce

On an Android 12 or Android 13 device.

  1. Import Bluetooth LE extension.
  2. Scan devices (the app will crash on some devices at this point).
  3. Connect to a BLE device (other devices will crash at this point).

Extra info: I am using BBC micro:bit for my tests.

dalemi666 commented 1 year ago

Same problem, is there a chance to have a new version of the extension to solve the problem for android > 12 ? Please give an answer Emilio.