I have a self-hosted ntfy instance and I am gradually building a bare-bones mobile app to display my notifications.
I am publishing by POSTing as JSON. Is it possible for the ntfy server to send all the data fields that are included in the JSON? I would like to pass data in custom fields. Makes sense?
If this does not exist, is it possible to make a feature-request?
5 Comments
binwiederhier@discuss.ntfy.sh · 1 pts · 3y
Can you make an example? Like, you want to just send custom fields when you publish the message and then pass it along to where?
loving_ntfy@lemm.ee · 2 pts · 3y
My backend POSTs notification JSON to self-hosted ntfy server:
The ntfy server should broadcast all fields, including
customFieldto the websockets/subscribers of this topic.Am I missing something?
binwiederhier@discuss.ntfy.sh · 2 pts · 3y
Got it. Yeah no that's not supported. I have thought about adding that many times, but nobody's asked for it so far.
I'd probably call them
extrasthough or something, so it'd be:loving_ntfy@lemm.ee · 2 pts · 3y
That would work great! So anything sent under
"extras"would be forwarded verbatim to the mobile app.Is it too much trouble to implement?
binwiederhier@discuss.ntfy.sh · 1 pts · 3y
It's probably easy as pie to implement. Feel free to open a ticket on GitHub.