Android and Xmpp: Currently Available Solutions

Android and XMPP: Currently available solutions

Smack

Smack is a open-source XMPP client library. Since version 4.1 it runs natively on Android. For more information have a look at the "Smack 4.3 Readme" and see the Smack project page at Ignite Realtime.

Better Way to implement the chat application using XMPP on Android?

The Stackoverflow question "Android and XMPP: Currently available solutions" provides a good overview of XMPP client libraries for Android.

Another good resource is xmpp.org/xmpp-software/libraries.

using XMPP with a .net server and android client

1) Find a server.

There are several XMPP servers available if you go to the XMPP site and check their handy list.

Personally, I'm using OpenFire and find it super easy to set up and use. Install, run it, and follow the setup wizard. I would not recommend trying to write your own XMPP server functionality into your own code as it gets complicated quickly. You can easily run a chat server side by side with your web services and have the app on the Client end communicate with both. This still serves up a seamless interface to the user.

2) Find a library for XMPP development on Android.

aSmack is pretty much what most Android devs use for this. (Info, plus link to code can be found here.) If you need more step-by-step help on how to develop this for the Android, I'd suggest searching for/posting more specific questions regarding how to use the library.

I hope this helps.

Cannot get list of public rooms from xmpp Server on Android?

I have found the Solution to the problem.

The Android asmack library was using this in
getHostedRooms(Connection connection,
String serviceName)
method

ServiceDiscoveryManager discoManager =ServiceDiscoveryManager.getInstanceFor(connection);

i replaced it with

ServiceDiscoveryManager discoManager = new ServiceDiscoveryManager(connection);

For those who are confused where this method is its in

Package: org.jivesoftware.smackx.muc

File: MultiUserChat.java

After you have done this. We have to register all the providers in Android whose detail can be found here. These providers are automatically registered when are using JAVA's smack library (In java Development) but in Android we have to register them ourself.

Chat application in android using xmpp

Why not use GCM? You can send a payload up to 4kb as in a message. And the service is free.

https://developer.android.com/google/gcm/index.html

XMPP with Android

I have made good experience with Smack as a XMPP-library for Java. People also have used it successfully with Android.

For more alternatives, xmpp.org has an extensive list.



Related Topics



Leave a reply



Submit