Hi! I have been using Spark for a few days, and I am really frustrated trying to connect to Google Talk. I know that GTalk is an odd bird in how it wants to handle JID and Realm, so maybe I am just entering things wrong. Instead of just a “username”, GTalk wants "email@example.com" and for the “to” addressee on packets, it wants “gmail.com”. And the server is talk.google.com, port 5222, STARTTLS and PLAIN SASL authentication.
The only response I am getting from Google is “invalid authzid.” This means that the data bits hashed together for the ID part of the PLAIN authentication are wrong.
I am not exactly a newb. I have been a Smack user for years, and I have written a couple of XMPP client libs myself in Java and C++. I did go through extra pains getting my client to connect with Google. (For example, Google sends -you- the resource that your client needs to identify itself). But I know that it can work.
So am I doing something wrong? Is Spark not using Smack’s GoogleTalkConnection, or at least mimicing its parameters?
Thanks a bunch!