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 notification URI lovelace redirect not working if app is open

See original GitHub issue

Home Assistant Android version: 3.0.2-full

Android version: 10QKQ1.190825.002

Phone model: Mi 9T Pro

Home Assistant version: 2021.1.1

Last working Home Assistant release (if known):

Description of problem:

Actionable Notification URI clickAction not working if application is already open. If the app is not open in the background the clickAction: /lovelace/systems works as expected, If the app is open in the background it opens the app but does not navigate to the view.

The video first shows the app closed, not in the background I click the notification and takes me to the correct lovelace location, then I change the page, move away from the app leaving it in the background and press another notification which is identical to the previous one, and It opens the app but does not navigate to the correct location.

The data the service was called with:

title: "ClickAction Test"
message: "This notification clickAction:/lovelace/systems"
data:
  clickAction: "/lovelace/systems"

Video of the Issue

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: Seems like the issue has been reported multiple times, but has been hard to reproduce? https://github.com/home-assistant/android/issues/467 https://github.com/home-assistant/android/issues/486

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
RichardUUUcommented, Jan 14, 2021

Right. Fixed.

1reaction
munitercommented, Jan 15, 2021

I am unable to reproduce this following the steps provided. The app always reloads to the tab regardless if the app is open or not. Can you try and start fresh with the android app to see if that solves the issue? https://companion.home-assistant.io/docs/troubleshooting/faqs/#starting-fresh-with-the-android-app

I have followed this instructions and tested around 20 times and It’s working without any issue, thank you @dshokouhi for your help. And for your great work. I’ll now close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Actionable Notifications | Home Assistant Companion Docs
Actionable notifications are a unique type of notification as they allow the user to add buttons to the notification which can then send...
Read more >
Home Assistant Android Companion App - KIril Peyanski
First thing that you need to check and if it's missing you have to add it in your Home Assistant configuration. You have...
Read more >
Redirect to notification setting directly from iOS app that ...
This code will redirect you to setting of notifications. if ([[UIApplication sharedApplication] currentUserNotificationSettings].types !=
Read more >
The ${URI_REF} is redirecting to undefined page in...
HI Developers, I have created the notification on incident and included ${URI_REF} in the email script(along with some checks) and I have ...
Read more >
Home Assistant Actionable Notifications on iOS AND Android
Home Assistant notifications just got even better and easier! Today we are looking at an updated guide on how to do Home Assistant ......
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