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?