How to define intent URL within client::notification?
Hello!
I'm trying to define URL to open another app after I click on the notification.
So, it seems, URL like that should do the trick:
{
"extras": {
"client::notification": {
"click": {"url": "intent://www.youtube.com#Intent;scheme=https;package=com.google.android.youtube;end"}
}
}
}
But nothing happens.
Any suggestions would be greatly appreciated.
This should do it.
{
"title": "Title",
"message": "click notification",
"priority": 5,
"extras": {
"client::notification": {
"click": { "url": "https://www.youtube.com" }
}
}
}
Yes, it will open youtube because youtube app supports deep links.
Most apps does not support deep links but should work with intent links.
youtube in my example is just an example.
I want to open Unifi Protect APP.
This is currently not possible.
I just wanted to give a thumb up for this feature. I created message when someone press my Reolink doorbell and I want to open Reolink app on Andrid phone using intent link method. Thank You.