Unified Push with Conversations
When you are running applications on your mobile phone that are waiting for events from a server on the internet, these apps usually use some sort of push service. The idea is that you have a single application on the phone that listens on an internet connection (using battery) and wakes up other apps when something interesting happens. A single centralized app is desirable because it uses a lot less battery than each app listening to internet events would need.
Programs for such a push services are traditionally proprietary applications by the mobile phone software companies. This means that these companies know what services you're using, the contents of the push notifications is typically encrypted so they do not know the contents.
Unified push (UP) is the open variant of a push notification service. It standardizes how applications communicate with the push service in the internet and leaves open the protocol between the push service and the mobile phone. Anyone can host such a push service, including yourself.
The bad news is that this cannot readily replace the push services by the big companies but some applications – among them several messengers for the Matrix procotol – support unified push. There is also a Signal fork named Molly that supports unified push with a separate application named mollysocket that polls the signal server and communicates state changes via unified push.
I'm running an XMPP (Jabber) service on a hosted server. Some time ago I discovered that I can use the Conversations XMPP client on my phone also as a unified push (UP) client. The XMPP server acts as a unified push server and transfers push messages to the phone via the XMPP protocol. At the time my XMPP server ejabberd did not yet support unified push – there already was a unified push plugin, but the ejabberd version shipped with Debian at the time was too old.
So I settled with the default unified push server in Conversations, a
host name starting with up..
Recently a new ejabberd version landed in Debian backports which also includes a build of the unified push plugin. So I upgraded my server to this version and tried to get unified push working with my Conversations client on my phone.
From the up. prefix of the previous unified push server (and the
separate configuration tab for the unified push service in Conversations)
I was under the impression that Conversations would connect to the
unified push server somehow. When configuring UP in ejabberd, the
up service endpoint lives on a high port and serves the http
protocol (preferrably with TLS, i.e., https). So I thought that
Conversations would connect to that port and did not find how to
configure a different port for the push service in Conversations.
The confusion resolved when I understood that Conversations simply connects to my ejabberd with XMPP for the unified push service. The unified push port is known by the XMPP server and communicated – probably via a jabber extension, this is the part that is not well documented – to Conversations which then can tell the applications where the unified push service is listening.
So the configuration of Conversations is very simple: Just enter your XMPP server also as the unified push server.