Help Needed with Bluetooth Server/Client Setup on Android 12 and 13
Hi everyone,
I'm facing some issues with my Bluetooth Server/Client setup using MIT App Inventor. I have tried everything I could think of and read through numerous posts, but I'm still stuck. Here are the details:
Devices:
Android 12 phone (Bluetooth Server)
Android 13 tablet (Bluetooth Client)
Problems:
On the Android 12 phone (Server):
I get Error 908: The permission BLUETOOTH_CONNECT has been denied. Please enable it in the Settings app.
Even after enabling the permission in the settings, I still get the error or sometimes a runtime error.
Also it looks like you forgot to ask for permission
Taifun
(Canned Response ABG - Bluetooth non-BLE SCAN Permission Blocks)
The easiest solution, for immediate relief
(from @Barry_Meaker) ...
I had the same issue. The problem is your app does not have permission to see nearby devices. The solution is to give your app permission on your phone (no code changes in your app).
on your phone,
goto settings
search for your app
in App Info for your app select Permissions
change Nearby Devices from Not Allowed to Allowed
Done
By the way, the very first time you run the app, Android will ask if you want to grant the app this permission. If you say no, or ignore the pop-up, the permission will be set as Denied. Android will not ask again.
A more complex approach, for professional app development: