I’m attempting to create a monitor app that will send me a message (i.e. that I would receive in a graphical chat client) whenever certain things happen. The code’s pretty simple:
XMPPConnection connection = new XMPPConnection(“gmail.com”);
Chat chat = connection.getChatManager().createChat(dst, nullMessageListener);
Suppose my account is firstname.lastname@example.org. If I set user = “buddy” and dst = "email@example.com", the code executes fine, but no new chat is opened in the graphical client. If I set dst = "firstname.lastname@example.org", where “notbuddy” is another valid account, that person sees a new chat opened.
Is this a limitation of XMPP/Google Talk/Smack, or am I just doing something wrong?
As a workaround I could create an additional “buddybot” account that the app could use to log in, but I was hoping to avoid that.