I ve got a problem : when I want to send a request to add a new user to my roster, the user has to be online, else, the request is not taken in care, and in the openfire console, there is no line corresponding to this request.
How can I change this ?
However, when both users are connected, it works perfectly
If you send a subscription request with a element to transport some additional text like “Hi, please add me to your contact list” (as suggested by the XMPP Core specification), Openfire will neglect that element in case the contact is offline. (+ any other presence extensions).
AFAIK, there’s no bug in the issuetracker yet. Maybe somebody could create one?!
The server MUST ignore any value of the ‘subscription’ attribute other than “remove”
Otherwise it looks well. But maybe try adding the item first and then send presence. Maybe Openfire overwrites pending subscription requests, if you update the roster afterwards.
So, when I send a request, with the “none” value, result is still equal to 0 , and I have always “add to friend” display on the button instead of a different info corresponding of the result value
That means if User B has ask=“subscribe” in User A roster it means, that User A is still waiting on a response from User B.
If you want to know if User B has sent you (User A) a subscription request, but you didn’t respond yet, that is probably reflected in your roster with ItemType.none.
When I send a subscribe request, it’s “none” in both roster. When the second user is connected (not accepting), the request switch to “to” or “from”, corresponding to the user.
Can I have the “to” and “from” state at the first request instead of “none” in both roster ?