Hello,
I am having a problem when connecting to the Google Talk service with smack from an android device(currently testing with asmack-android-8-4.0.3-SNAPSHOT-2014-08-04.jar)
I am not entirely sure, but the problem seems to be related (or even the same?) as described in this old thread that I found on a google search:
https://community.igniterealtime.org/thread/51832
What happens (from my understanding, correct me if I'm wrong):
login/authenticate
announce my presence
retrieve contact entires
get presence packets for the contacts.
parse presence packets
---> Thats the point where I get the error:
org.jivesoftware.smack.packet.Presence cannot be cast to org.jivesoftware.smackx.vcardtemp.packet.VCard
also followed by a warning:
WARNING: Failed to parse extension packet in Presence packet.
So with my limited understanding of XMPP, I have the strong suspicion that Google uses an extension for presence that is either not supported by smack and/or not according to XMPP specification?
By the way, this is the presence packet:
<presence from="anderscorechat@gmail.com/50A80A35" to="anderscorechat@gmail.com/SmackAE0E4866"><priority>1</priority><c node="http://pidgin.im/" hash="sha-1" ver="71LAP/wlWGfun7j+Q4FCSSuAhQw=" xmlns="http://jabber.org/protocol/caps"/><x xmlns="vcard-temp:x:update"><photo/></x></presence>
I think especially <x xmlns="vcard-temp:x:update"><photo/></x> part could be a problem?
You can see the full debug logcat output with the XML stream here:
Hope this helps to find the root of the problem!
best regards
Ralf