I am sending a presence of type=“subscribe” to another user in order to subscribe to its presence.
I am also adding a element to provide some additional text as suggested in:
The child MAY also be sent in a subscription-related presence stanza (i.e., type “subscribe”, “subscribed”, “unsubscribe”, or “unsubscribed”) to provide a description of the action. An interactive client MAY present this information to a human user (see Section 11).
I am also adding a nickname as suggested by XEP-172:
My outgoing presence looks like this:
Hi, please add me!MyNick
The problem is, if 222@dev is offline, Openfire will send only:
as soon as it comes online.
I believe this is a bug in Openfire, since it only stores the “presence subscription” status in the roster as integer value.
Can somebody comment on this issue please and maybe file it as bug in OF issue tracker?