I have been reading through some past occurrences regarding Error 908 and BLE Bluetooth connection and unfortunately have not made any progress over the past two days.
I am using a Samsung S22 with Android 13.
In my case I am receiving the infamous "Error 908: The permission BLUETOOTH_CONNECT has been denied. Please enable it in the Settings app."
This only happens with the final compiled app installed on my phone.
Using MIT AI2 Companion I can use the BLE as desired no issues.
What I have done
Disable Google Play Store protect
Manually enabled location permissions with precise location enabled on the stand alone app.
Enabled notification settings on the stand alone app.
I have attached my code blocks for troubleshooting.
You will need to update to the latest BLE extension, specifically 20230728, so that when you compile apps with the extension they pick up the appropriate permissions introduced with Android 12.
Thanks for the feedback, I have updated my extension which fixed the BLUETOOTH_CONNECT problem but I appear to be hitting a new roadbloack with the same error code.
Now I am being told that "BLUETOOTH_SCAN" and "ACCESS_FINE_LOCATION" are denied.
Every permission that I can allow in the App Permissions window of my phone is allowed.