Help sending URL in notification to Home Assistant Companion for Android

I need to send a URL from my NVR to my phone via a push notification so that when I tap the notification, it takes me to the NVR’s recording that generated the alert. I’ve been testing this in the Services dev tool.

This works. I get the notification with the image.

message: 'test message'
data:
  android:
    notification:
      image: https://i.pinimg.com/originals/0f/7b/fa/0f7bfa4e6775b5977694a6036fc85b48.png    

This does not work.

message: 'test message'
data:
  android:
    notification:
      url: https://i.pinimg.com/originals/0f/7b/fa/0f7bfa4e6775b5977694a6036fc85b48.png
      

It generates this log message.

“Invalid JSON payload received. Unknown name “url” at ‘message.android.notification’: Cannot find field.”

So obviously I’m going about this the wrong way. Can someone point me in the right direction?

Thanks!

Probably not supported yet

1 Like

Yep seems not yet supported.

Only basic fields like title and message are supported for now. Obviously we hope to gain parity with iOS at some point.

1 Like

I suspected that was the case. Thanks for confirming. I added a feature request on Github.

https://github.com/home-assistant/home-assistant-android/issues/335

1 Like