Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define intent URL within client::notification? #393

Open
GitStorageOne opened this issue Dec 7, 2024 · 3 comments
Open

How to define intent URL within client::notification? #393

GitStorageOne opened this issue Dec 7, 2024 · 3 comments

Comments

@GitStorageOne
Copy link

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.

@jmattheis
Copy link
Member

This should do it.

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

@GitStorageOne
Copy link
Author

GitStorageOne commented Dec 7, 2024

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.

@jmattheis
Copy link
Member

This is currently not possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants