Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

About vCard PREFIX node

$
0
0

Hello!

 

I am using OpenFire Server 3.9 with smack library v 4.1.1 on Android.

 

Server sends XMPP data such this:

"

<iqtype="result" from="smolowa.anastasia.yandex.ru@46.38.63.221" to="pop.pop.pip@46.38.63.221/56cf8dbb">

<vCard xmlns="vcard-temp">

<NICKNAME>Lina</NICKNAME>

<DESC>Информация о пользователе</DESC>

<FN>Lina</FN>

<N><PREFIX>Ms</PREFIX></N>

<PHOTO>

<TYPE>image/jpeg</TYPE>

<BINVAL>/9j/4AAQSkZJR ... 0bX3H/9k=</BINVAL>

</PHOTO>

</vCard>

  </iq>

"

 

On the client (Android with Smack v 4.1.1) I can not read  "<N><PREFIX>Ms</PREFIX></N>" value. There is no such value in the object Stanza. All values are present except "PREFIX".

I began investigation and have found that "Stanzas" objects are returned after they were processed by "VCardProvider" class . In "VCardProvider" for  parsing nodes with name "N" used method "parseName" that ignores child nodes with name "PREFIX".

 

What is the best solution for get value from "PREFIX" node in XMPP Vcard ?


Viewing all articles
Browse latest Browse all 4979

Trending Articles