xmpp_client/src
Daniel Gultsch e467fe341e implement client support for muc push
Staying connected to a MUC room hosted on a remote server can be challenging.

If a server reboots it will usually send a shut down notification to all
participants. However even if a client knows that a server was shut down it
doesn’t know when it comes up again. In some corner cases that shut down
notification might not even be delivered successfully leaving the client in a
state where it thinks it is connected but it really isn’t.

The possible work around implemented in this commit is to register the clients
full JID (user@domain.tld/Conversations.r4nd) as an App Server according to
XEP-0357 with the room. (Conversations checks for the push:0 namespace on the
room.)

After cycling through a reboot the first message send to a room will trigger
pubsub notifications to each registered full JID. This event will be used to
trigger a XEP-0410 ping and if necessary a subsequent rejoin of the MUC.

If the resource has become unavailable during down time of the MUC server the
user’s server will respond with an IQ error which in turn leads to the MUC
server disabling that push target.

Leaving a MUC will send a `disable` command. If sending that disable command
failed for some reason (network outage) and the client receives a pubsub
notification for a room it is no longer joined in it will respond with an
item-not-found IQ error which also disables subsequent pushes from the server.

Note: We 0410-ping before a join to avoid unnecessary full joins which can be
quite costly. Further client side optimazations will also surpress pings when
a ping is already in flight to further save traffic.
2019-06-24 18:16:06 +02:00
..
compat/java/eu/siacs/conversations use EmojiWrapperEditText for most relevant text inputs 2018-06-29 13:40:55 +02:00
conversations pulled translations from transifex 2019-05-22 17:32:14 +02:00
free/java/eu/siacs/conversations/services introduced build flavor to build w/o emoji compat 2018-06-21 14:26:25 +02:00
freeCompat/java/eu/siacs/conversations/ui/service EmojiService: use replaceAll=false on android 8 2018-07-05 13:22:32 +02:00
main implement client support for muc push 2019-06-24 18:16:06 +02:00
playstore explicitly start service (instead of just bind) service from contact chooser 2019-01-13 09:42:44 +01:00
playstoreCompat EmojiService: use replaceAll=false on android 8 2018-07-05 13:22:32 +02:00
quicksy pulled translations from transifex 2019-05-22 17:32:14 +02:00
system/java/eu/siacs/conversations use EmojiWrapperEditText for most relevant text inputs 2018-06-29 13:40:55 +02:00