Open Maik2016 opened 2 years ago
Hello,
unfortunately I have no Android 12 device available, and the Android device emulator can't emulate BT.
I will reread the manual and check what needs to be changed.
Regards Martin
How did you install the app? Using the playstore or by using the APK from github?
I Installed the APK manually, unfortunate with Android development I have no Idea at all :(
Right now I plan to add L to the project and maybe time like the supersense,
I just pushed a commit, please try if it solves your Android 12 problem.
I tried the apk and it did not bring the error with access anymore but did not find anything. I tried to find the issue and found something: This is a text from a forum
https://stackoverflow.com/questions/70578601/android-12-ble-scan-does-not-find-any-devices
I found that Andriod 12 still requires Location services enabled, android.permission.ACCESS_FINE_LOCATION and additionally android.permission.BLUETOOTH_SCAN without android:usesPermissionFlags="neverForLocation" flag in AndroidManifest, and explicit granting of these permissions by user in runtime to search for beacon devices.
Other device types can be found without Location services and ACCESS_FINE_LOCATION if in AndroidManifest you add the flag android:usesPermissionFlags="neverForLocation" to android.permission.BLUETOOTH_SCAN permission.
I changed the permission handling a bit. Please try if that new release solves your issue. In addition, I updated the BLE on the ESP32 firmware. This helped me to get a more reliable connection to the sensor.
https://github.com/MartinVerges/smartsensors/actions/runs/1882743227 and https://github.com/MartinVerges/rv-smart-tanksensor/actions/runs/1882736865
Hallo,
ich konnte leider nicht früher Testen. Habe die letze Version von der App und ESP versucht, bei Android 12 geht es nicht die App scheint es evtl zu finden und stürtzt dann sofort ab. Android 11 geht es.
Hello,
I like you great project and I try to use the app for testing, but for Android 12 on Pixel 6 it shows no Bluetooth rights even if it enabled.
Did you know where to change the code to make the app Android 12 compatible ?