powered by Jive Software

vCard Smack DefaultPrivateData

I am trying to update the vCard data using the PrivateDataManager using Smack but getting into trouble trying to see those changes in a client. In Gaim or JWChat the iq namespace is blank; however when I use a PrivateDataManager with the following:

DefaultPrivateData dPrivate = new DefaultPrivateData(“vCard”, “vcard-temp”);

the iq namespace is jabber:iq:private and am not setting/getting the data in the correct namespace for the query.

I think I am using this incorrectly as I am starting to believe that this should only save options such as autoPopup etc.

Is there a way to use PrivateDataManager to set the iq namespace to blank? so I can set and retrieve the data to be accessable to Gaim or JwChat.

I am not sure I am approaching the vcard data correctly. Help get me back on track please.

Hey Tod,

DefaultPrivateData is intended for storing and retrieving url=http://www.jabber.org/jeps/jep-0049.htmlprivate information[/url] and not url=http://www.jabber.org/jeps/jep-0054.htmlvCards[/url]. Smack does not yet have official support for vCards but in this url=http://www.jivesoftware.org/forums/thread.jspa?forumID=39&threadID=14017&mes sageID=95894𗚖thread[/url] you can find the link to a vCard implementation for Smack.

Regards,

– Gato

Thanks, That is what I needed.