Hi,
I’'ve got some questions regarding roster subscription:
-
I’‘ve added to my roster a user who doesn’‘t exists on the server yet. Is it possible to get a notification when the user has registered? Currently I don’'t get presenceChanged notification for such situation.
-
I set getRoster().setSubscriptionMode(Roster.SUBSCRIPTION_MANUAL) and logged out. A user added me to their roster while I’'m offline. I log in. How can I get a notification that I should authorize users who added me to their roster?
-
Is there any way to find out if user with particular JabberID exists?
Thank you,
KIR
Hey,
- I’‘ve added to my roster a user who doesn’'t exists
on the server yet. Is it possible to get a
notification when the user has registered? Currently
I don’'t get presenceChanged notification for such
situation.
AFAIK, most of the servers will not send any notification when the new accout is created. So it’‘s up to the user (i.e. the human) to give up and retry again subscribing to the contact’'s presence.
- I set
getRoster().setSubscriptionMode(Roster.SUBSCRIPTION_MA
NUAL) and logged out. A user added me to their
roster while I’'m offline. I log in. How can I get a
notification that I should authorize users who added
me to their roster?
The server should be sending you a subscription request when you become online. If you are using Jive Messenger and you are not getting one let me know.
- Is there any way to find out if user with
particular JabberID exists?
You can use the search plugin (if using Jive Messenger) to locate a given user. Other servers may support JUD (Jabber User Directory) which is a similar functionality.
Regards,
– Gato
Thanks for the answers, Gato.
- I set
getRoster().setSubscriptionMode(Roster.SUBSCRIPTION_M
NUAL) and logged out. A user added me to their
roster while I’'m offline. I log in. How can I get
a
notification that I should authorize users who
added
me to their roster?
The server should be sending you a subscription
request when you become online. If you are using Jive
Messenger and you are not getting one let me know.
Currently, I JabberD for local testing. I’'ll check with Messenger and
let you know if it doesn’'t work.
- Is there any way to find out if user with
particular JabberID exists?
You can use the search plugin (if using Jive
Messenger) to locate a given user. Other servers may
support JUD (Jabber User Directory) which is a
similar functionality.
Is there a simple way to query JUD from Smack? Some extension for this?
Thanks again,
KIR
Hey KIR,
Is there a simple way to query JUD from Smack? Some extension for this?
Out-of-the-box Smack does not include an extension for JUD. Let us know if you need help implementing the extension.
Regards,
– Gato