I'm using Smack to develop an internal dashboard in Java/Spark that would start a Google Talk conference between a LDAP user group. When I run
MultiUserChat.isServiceEnabled(connection, "[email protected]")
it returns false. I know that via the GMail client, one can start a group conversation. Could this be returning false because of something in my Google Apps domain, or does Google use some other means for group chat in Google Talk?
In reality, we don't know the state of XMPP inside Google because they don't share their use of XMPP with the XSF. We do know Android's Google Cloud Messaging uses it. We know Hangouts Videochat uses it. We know Google Talk still (insecurely) federates with (some) XMPP services.
So the two are basically the same, aside from the fact that GChat is only accessible via Gmail and Google Talk isn't. The main distinction you need to make with Google Talk is that it is a separate software and you need to download and install it on your computer before you can begin using it.
Abstract. This specification defines an XMPP protocol extension for multi-user text chat, whereby multiple XMPP users can exchange messages in the context of a room or channel, similar to Internet Relay Chat (IRC).
The Google Talk App for Android and the Google Chat tool in Gmail were discontinued on June 26, 2017, and no longer functioned. Users could still continue to use third-party XMPP clients to connect to the legacy Google talk server, but only for 1-on-1 chat with Hangouts users.
So as it turns out, GTalk actually does support MUC. With Smack and Java, it's as simple as the following code:
UUID uid = UUID.randomUUID();
String chatRoomName = String.format("private-chat-%1s@%2s", uid, "groupchat.google.com");
MultiUserChat muc = new MultiUserChat(connection, chatRoomName);
muc.join("My username");
From there, it's just a matter of adding users like
muc.invite("[email protected]", "Some reason");
No, as of today no Google Talk client does support XEP-45 Multi User Chat (MUC), nor does Google Talk announce a XMPP MUC component.1
All Google Talk clients from Google do not support MUC, which is what you check with MultiUserChat.isServiceEnabled()
. However, if a user is using a third party XMPP Client (e.g. Gajim) with Google Talk, then he can join MUC rooms like any other XMPP User.
See also this questions on Google productforums: http://productforums.google.com/forum/#!topic/chat/HLyMGBxJM7Q
1But there is one. See this answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With