newbie alert …
I can use Smack to login to talk.google.com using my gmail account; but I can’'t see how to login to a Google Apps For Your Domain account.
So this works:
ConnectionConfiguration config;
String serviceName = “gmail.com”;
String host = “talk.google.com”;
String port = “5222”;
XMPPConnection connection = new XMPPConnection(config);
connection.login(MY_GMAIL_ACCOUNT_NAME, MY_PASSWD);
But, I have “mydomain.com” at Google, and various user accounts on that domain. They are able to chat with one another using Google Talk. Now I’‘m trying to write a client that sends them IMs, so I created a user account for my sending program, "sn1@mydomain.com". I can’'t figure out what to set the service name, host, username to … all my experiments have failed login.
I’'ve tried combinations of
serviceName = “gmail.com”
serviceName = “mydomain.com”
serviceName = "mydomain.com@gmail.com"
and
connection.login(“sn1”, SN1_PASSWD);
connection.login("sn1@mydomain.com", SN1_PASSWD);
connection.login("sn1@mydomain.com@gmail.com", SN1_PASSSWD);
So, is there an example of logging into/sending to a Google-hosted domain?
Thanks for any help,
– Wayne