server icon indicating copy to clipboard operation
server copied to clipboard

Support UnifiedPush /UP

Open genofire opened this issue 4 years ago • 5 comments

Is your feature request related to a problem? Please describe. It would be nice, that no nginx with LUA is needed infront of gotify

Describe the solution you'd like Implement an /UP like in the LUA Script definied: https://unifiedpush.org/users/distributors/gotify/

genofire avatar Jun 27 '21 12:06 genofire

I don't fully support Unified Push right now, I'd probably include such an api after the android part for unified push is merged.

Unified push from my point of view still needs a little more adoption to be integrated into gotify.

jmattheis avatar Jun 30 '21 17:06 jmattheis

Okay it is blocked by: https://github.com/UnifiedPush/gotify-android/issues/2

genofire avatar Jul 02 '21 08:07 genofire

I know this isn't happening now, but for future reference

Implement an /UP like in the LUA Script definied:

the full definition is here https://unifiedpush.org/spec/server/

karmanyaahm avatar Aug 01 '21 00:08 karmanyaahm

Any update ?

It would be very nice to at least consider this alternative : an endpoint where:

  • token can be set via a GET parameter. For instance /raw?token=<token>.
  • the raw POST data is the content of "message"
  • (less important but still) if possible, a discovery parameter to set the response of GET /raw?token=any would be perfect.

It can be done by editing https://github.com/gotify/server/pull/420 to have api/raw.go and change /UP to /raw.

This way:

  • this endpoint is not officially for unifiedpush, and can be used for other reasons
  • UnifiedPush users won't struggle to set up a self hosted gotify server for it.

p1gp1g avatar Nov 08 '21 13:11 p1gp1g

May I give a little UP ;) to this issue. Is there any news about it ? With the increasing adoption of GrapheneOS, supporting UnifiedPush might become more interesting ?... Edit : sorry, I hadn't seen your comment on the other issue.

Eirikr70 avatar Jan 21 '24 09:01 Eirikr70