.. title: Unified Push with Conversations
.. slug: 06
.. date: 2026-12-06 10:00
.. tags: documentation,english,howto,networking,open source,privacy
.. description:
.. wp-status: publish
.. has_math: false

.. |--|  unicode:: U+2013  .. en dash
.. |ohm| unicode:: U+02126 .. Omega
   :trim:
.. |_| unicode:: U+00A0 .. Non-breaking space
   :trim:
.. |mho| unicode:: U+2127 .. upside-down Omega

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.

.. _Conversations: https://conversations.im/
.. _`push service`: https://en.wikipedia.org/wiki/Push_technology
.. _`unified push plugin`:
    https://github.com/processone/ejabberd-contrib/tree/master/mod_unified_push
.. _mollysocket: https://github.com/mollyim/mollysocket
.. _molly: https://molly.im/
.. _Matrix: https://matrix.org/
.. _ejabberd: https://ejabberd.im/
.. _Debian: https://www.debian.org/
.. _Signal: https://signal.org/
