question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Actionable notifications not actioning on Android 12

See original GitHub issue

Home 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:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
GurtKnevcommented, Nov 15, 2021

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!

image

1reaction
dshokouhicommented, Oct 26, 2021

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 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Actionable Notifications not Working on Android - Reddit
Hey all, I have notification that tells me when the front door unlocks, and want there to be a button that locks the...
Read more >
Actionable notifications for Android - Home Assistant Community
I think the workaround would be to use the tag and clear the notification from another automation. not a workaround, thats how you...
Read more >
iOS 7 wants: Actionable notifications and push interface - iMore
(Even if all of it was shown in the push notification, the information isn't passed along and the app has to make its...
Read more >
Notification Snooze/hide for a day (One UI 4 Android 12)
Once seen and acted on I don't want to see that again until the next day (or for 24h, both are ok). There's...
Read more >
Changes in Android 12 - Notificare
Android 12 no longer allows intent receivers to act as a so-called "trampoline" for opening notifications. Instead, notifications that need ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found