#Android app and default actions uri

1 messages · Page 1 of 1 (latest)

pearl roost
#

Does anyone know if android is supposed to have the ability to have a default actions uri eg uri: "/lovelace/cameras" when the user clicks on a notification, but not on any of the actions.

I do see mention of it here https://companion.home-assistant.io/docs/notifications/actionable-notifications#uri-values where it shows

url: "/lovelace/cameras" # launched if no action is chosen

but its hard to know if this specific example is ios specific or supposed to work on android. I can't seem to get it working on android so not sure if its a bug or by design?

Actionable notifications are a unique type of notification as they allow the user to add buttons to the notification which can then send an event to Home Assistant once clicked. This event can then be used in an automation allowing you to perform a wide variety of actions. These notifications can be sent to either iOS or Android.

gray light
gray light
#

But elsewhere the docs do say to use clickAction

pearl roost
#

yeah in my case i dont want any action buttons, just clicking on the notification itself, so ill try the clickAction, cheers

#

yeah clickAction works on android, nice, cheers. Could be a nice little improvement to the actionable notifications page as it doesn't mention clickAction, only the ios specific one, in its examples.

fathom plank
pearl roost
#

ah ok, in that case maybe the ios equivalent should also be omitted from the actional notifications page so as to avoid confusion?

fathom plank
#

those examples are specifically for the buttons and i think they still work on iOS

#

you may have read the page before the main Introduction 🙂 actions come after the message and the other bits of a notification

pearl roost
#

My point being, if you read this page in isolation, which I did and others would, this example can lead the user a bit astray, definitely did for me. Anyways, not a big deal. Might avoid a similar ejit like me asking the same question if it was updated to not give the ios specific data.url key there, or it could give both for consistency.

  data:
    url: "/lovelace/cameras" # launched if no action is chosen
    actions: ...
fathom plank