Actionable notifications not actioning on Android 12
See original GitHub issueHome Assistant Android version: 2021.10.6 Android version: 12 (final not beta) Phone model: Pixel 4 XL Home Assistant version: beta-1576-e1cc6c8-full Last working Home Assistant release (if known): N/A Description of problem: When clicking action button to open lovelace view, notification dismisses but companion app doesn’t open. logcat shows following error:
NotificationService: Indirect notification activity start (trampoline) from io.homeassistant.companion.android blocked
Relevant links:
https://developer.android.com/about/versions/12/behavior-changes-12#notification-trampolines https://proandroiddev.com/notification-trampoline-restrictions-android12-7d2a8b15bbe2
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:
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
Was also having this problem on Android 12 on mij pixel! Tried setting the permission to display home assistant in front of other apps and everything is working now!
LOL that sounds like a bug in Android 😃
I am going to assume that we need to request this permission as our pending intent if the user does not have it. The unfortunate aspect here is that it will no longer work for users under Android 6 😕
Lets keep this open this is probably something we want to address so its more smooth and decide on the approach, at least for now there is a work around 😃