1
votes

I create a messenger based on openfire. I can connect and set status on online / offline and the openfire console also changes, but I have a problem with my other devices.

Other devices (other users) gets information about changing my status and it's visible to them.

My devices (second and third device of the same user) do not see the status change and all are online. If I log on to the fourth device, information is sent to other devices (other users) that I am online, although I still have my status on the first device set as away.

Is there any plugin that allows updating the status on all devices of a given user?

1

1 Answers

0
votes

This should be done by the server as per Server Processing of Outbound Initial Presence

The user's server MUST also broadcast initial presence from the user's newly available resource to all of the user's available resources, including the resource that generated the presence notification in the first place (i.e., an entity is implicitly subscribed to its own presence).

So each time you connect your own device (i.e. same username/JID) and send presence your server has to broadcast that presence to all already connected connected devices (same JID).

It looks like there was similar problem reported OF-454Openfire does not send user presence information to all resources of the user but it's marked as fixed: Fix Version/s: 4.0.0

If you are using cluster please make sure that your nodes can communicate without problems.