Render html in notify messages?
Closed this issue · 3 comments
Tehsurfer commented
Is there any way to render html in a notify message?
I'd like to create a link that can be clicked from the notification or server location.
EG.
<a href="https://www.google.co.nz/">Available Here</a>
paulgb commented
Hi Jesse,
It does not support general HTML (which is a limitation of the Web
Notification API), but you can specify a URL to go to when the notification
is clicked with the "action" parameter of send()
https://github.com/notify-run/notify.run/blob/3c0a148657266ff328d530fb4be3f88ece344aa9/py_client/notify_run/__init__.py#L108
…-- Paul
On Mon, Sep 28, 2020, 1:33 AM Jesse Khorasanee ***@***.***> wrote:
Is there any way to render html in a notify message?
I'd like to create a link that can be clicked from the notification or
server location.
EG.
<a href="https://www.google.co.nz/">Available Here</a>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#24>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALIXODMXGD4FMVVFQ3UG3SIAN2RANCNFSM4R4BZVSQ>
.
Tehsurfer commented
but you can specify a URL to go to when the notification is clicked with the "action" parameter of send()
Wow thanks for your help Paul that is even better! I completely missed this in the docs, I'll read a bit deeper next time.
Awesome project by the way! Thank you for sharing.
paulgb commented
No problem, it's possible I overlooked that when writing the docs (if I remember it was a later addition). Glad it helps!