android icon indicating copy to clipboard operation
android copied to clipboard

How to define intent URL within client::notification?

Open GitStorageOne opened this issue 1 year ago • 4 comments

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.

GitStorageOne avatar Dec 07 '24 18:12 GitStorageOne

This should do it.

{
  "title": "Title",
  "message": "click notification",
  "priority": 5,
  "extras": {
    "client::notification": {
      "click": { "url": "https://www.youtube.com" }
    }
  }
}

jmattheis avatar Dec 07 '24 19:12 jmattheis

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.

GitStorageOne avatar Dec 07 '24 20:12 GitStorageOne

This is currently not possible.

jmattheis avatar Dec 08 '24 09:12 jmattheis

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.

bmatic385 avatar Mar 19 '25 11:03 bmatic385