How to run uniqush-push while still using the server?

101 views
Skip to first unread message

Aaron van der Brugge

unread,
Feb 19, 2019, 7:49:54 AM2/19/19
to uniqush
Good morning,

I'm in the process of installing a system for Push Notifications. I've purchased the asset UTNotifications and it has recommended that I install uniqush-push on my VPS.

However, when I run uniqush-push on my Console, the Console stops doing anything else until I hit Ctrl+Z. While uniqush-push is running, the notifications work. But after I exit the process, the notifications stop working.

That makes me wonder, how the heck am I supposed to still use my server if I want to use it for notifications?

Are you supposed to have some kind of dedicated cloud server that is constantly running uniqush-push?

Also, you're supposed to run curl http://ip.address:port/addpsp ... to add a provider to the uniqush-push service, BUT, how can I do that while uniqush-push is running if it keeps my server busy and I cannot type anything anymore?

Please advise.

Tyson

unread,
Feb 19, 2019, 1:31:41 PM2/19/19
to uniqush
 I've purchased the asset UTNotifications and it has recommended that I install uniqush-push on my VPS.

I'd suggest that you ask them for clarification on how they recommend that you run it in the background. uniqush-push is unaffiliated with UTNotifications (I don't know what that is).

There are various ways that an OS provides to run programs in the background. You'd need to use one of those.

- init.d/systemd, depending on what OS you use (uniqush isn't bundled with an example config, but it should be easy to base on other background services such as redis/memcached)
- screen/tmux (start a session, start uniqush, then detach the session)

init.d/systemd are probably the most robust but harder to set up.

Aaron van der Brugge

unread,
Feb 19, 2019, 2:31:35 PM2/19/19
to uni...@googlegroups.com
Good morning Tyson,

Thank you for getting back to me so quickly! That's awesome.

So I managed to get it running but I think I'm doing one step wrong. Could you please take a look at my console log? Perhaps you can recognize the issue.

This is my Console log:

image.png

This is my Android app. I used it to send a WWW form to my server http://216.119.157.64:5400/subscribe.
As you can see from the returned text beneath INITIALIZE, it looks like that worked. It says UNIQUSH_SUCCESS.

Screenshot_2019-02-19-20-27-44.png

So I'm not sure what's wrong. I might be doing something very obviously wrong, because this is my very first time working with notifications.

I got them to work with a local demo server on my laptop/WLAN but that's not useful for real use cases. Now I'm trying to get it to work with uniqush-push on my cloud server.

Sincerely / Met vriendelijke groeten,
Aaron van der Brugge


--
You received this message because you are subscribed to the Google Groups "uniqush" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uniqush+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages