Android 12 brings back High Accuracy mode notification lingers issue
See original GitHub issueHome Assistant Android version: 2021.10.0-full
Android version: 12
Phone model: Pixel 5
Home Assistant version: core-2021.9.7
Last working Home Assistant release (if known):
Description of problem: After upgrading to Android 12 the symptoms of issue #1509 have returned.
Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):
Screenshot of problem:
Additional information: I didn’t change any other settings in the app or Home Assistant itself - just upgraded to Android 12 yesterday. I use BT devices to trigger High Accuracy mode and the notification will remain after the first connection and then go away after the second. This pattern has been consistently repeatable so far but only 24+ hours since I upgraded.
Issue Analytics
- State:
- Created 2 years ago
- Comments:27 (15 by maintainers)
Top GitHub Comments
@crowedavid it sounds like you can very easily reproduce it. Can you try this debug APK to see if its still reproducible? https://github.com/home-assistant/android/actions/runs/1366300760 it will install side by side the production version of the app and you can remove once done.
I know google made some changes regarding the behavior of foreground services (the notification) and reading connected bluetooth devices so I wonder if there is a bug in Android 12 about this. Both of the changes I mention should only impact apps once they target android 12, and the current app version you have installed targets android 11. The debug APK up above has the changes that @chriss158 is referring to and once you turn on location tracking it should prompt you to grant the new permission for nearby devices.
Weird. Since this commit i have no problems at all. Just to make sure: The app is allowed to run in background? maybe for more you need to open a new issue with new logs. Then i will have a closer look at this.