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 set hyperlink url? #29

Open
Rakesh2907 opened this issue Feb 12, 2021 · 1 comment
Open

How to set hyperlink url? #29

Rakesh2907 opened this issue Feb 12, 2021 · 1 comment

Comments

@Rakesh2907
Copy link

Hello,

How to set hyperlink url for when click on notification open target page.

@owenvoke
Copy link
Collaborator

It looks like there is only support for it in the TerminalNotifierNotifier class, however, you'd have to use the underlying notification class directly and append $notification->addOption('url', 'https://example.com'); such as (this untested example):

app(\Joli\JoliNotif\Notifier\TerminalNotifierNotifier::class)->send(
    app(\Joli\JoliNotif\Notification::class)
      ->setTitle($text)
      ->setBody($body)
      ->setOption('url', 'https://example.com');
);

Note: This also would only work on Mac OS X 10.8 and higher, and requires terminal-notifier to be installed. 😕

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

No branches or pull requests

2 participants