Wish [WISH] XMPP Library

fabpalma

Member
Licensed User
Longtime User
What about an XMPP library to interact with GTALK service ?

C2DM is ok for push messages but do not allow replies from the device.

And XMPP can open a lot of features for Android application built with B4A !

Fab
 

manolitoGnet

Member
Licensed User
Longtime User
mmm... a lot of time...

Five months later: I agree. It ill be really interesting to have some possibilitie to interact with gtalk.

Tx

:sign0163:
 

fabpalma

Member
Licensed User
Longtime User
mmm... a lot of time...

Five months later: I agree. It ill be really interesting to have some possibilitie to interact with gtalk.

Tx

:sign0163:

yes .... it sound like "not intresting for other people" !!!

I think it would be an interesting thing .... but ....

No more people ??
Bye
Fab
 

nw11

Member
Licensed User
Longtime User
Would be really helpful!

yes .... it sound like "not intresting for other people" !!!

I think it would be an interesting thing .... but ....

No more people ??
Bye
Fab

Would be really helpful!
 

lymey

Active Member
Licensed User
Longtime User
Still wishing!

I really really need a way to send and receive xmpp messages!
It would give B4A a very powerful tool to create messaging apps that are not restrained to SMS.

Please! Please! Please!
 

warwound

Expert
Licensed User
Longtime User
This sounds like it's something i could do.

There seems to be many possible java and android XMPP libraries with which to base a B4A library on.
asmack and AsmackService look popular but neither seem to be currently maintained or updated.

I know next to nothing about XMPP, do smack or AsmackService have the features that a B4A user requires?
Are their better - newer libraries that are maintained and updated - libraries that would make a better B4A library?

Will you all have a whip round for my time?

Martin.
 

Smee

Well-Known Member
Licensed User
Longtime User
Hi martin,

Thanks for the offer. I'm going to do some research to see what features are available. you seem to be correct about Asmack etc
 

warwound

Expert
Licensed User
Longtime User
:sign0163:

no news = no good news ?

no news = i've been busy (working) on other things = no good news!

To be honest i was expecting Smee or others to do some research and find out which is the best most up to date and currently maintained 3rd party XMPP library to wrap...

Martin.
 

fabpalma

Member
Licensed User
Longtime User
no news = i've been busy (working) on other things = no good news!

To be honest i was expecting Smee or others to do some research and find out which is the best most up to date and currently maintained 3rd party XMPP library to wrap...

Martin.

I think that the best library to wrap is Smack and I will be happy to offer a shandy to Martin for his time !!

Is there :sign0163: else ???

Fab
 

IanMc

Well-Known Member
Licensed User
Longtime User
Does gTalk expose any web services APIs ?

hold on.....

google: gtalk api

yep

This might be the way to go?
 

warwound

Expert
Licensed User
Longtime User
Right...

Smack seems to be the obvious best library to wrap into a B4A library but it's not compatible with Android.
So that's why someone developed asmack, asmack basically being smack patched so that it is compatible with Android.

The latest version of smack is 3.3.2, Feb 5 2012.
The latest version of asmack is dated 7th May 2010 here: asmack - Android build environment and patches for smack - Google Project Hosting, and simply labelled version 7 here: https://github.com/Flowdalic/asmack/downloads.

So wrapping asmack would be wrapping an old and out of date library.

Asmackservice seems to be at least 2 years old so again not a good candidate to be wrapped into a B4A library.

I've also found qsmack, an Android compatible version of the latest smack 3.2.2 which seems to be the best option so far.
But the qsmack author does state: Warning: I do NOT testing anything of this version ! Please testing it by yourself if you are interesting in this library !.
So qsmack is up to date but entirely untested - doesn't sound quite so promising after all!

I've no real knowledge of what an XMPP library is required to do so i don't know if the Google APIs Client Library for Java is a substitute for an XMPP library or an alternative.
Hopefully someone can explain?

So that sums up what i'd need to decide before even starting writing any code.

Then i'd need to start writing some basic code that'd enable me to bit by bit get a better understanding of the XMPP mechanism.
I can then look at adding more advanced stuff to the B4A library.

So what shall i do?
  • Gamble and wrap the new but untested qsmack library?
  • Wrap an old and out dated (but tested and known to work) asmack library?
  • Look at the old and out of date asmackservice.
  • See if Google APIs Client Library for Java can do all that a XMPP client is required to do.

Martin.
 

fabpalma

Member
Licensed User
Longtime User
Right...
So that's why someone developed asmack, asmack basically being smack patched so that it is compatible with Android.
So wrapping asmack would be wrapping an old and out of date library.
Martin.

Martin,

you are right, aSmack wasn't update recently but it seem that it is used from different application without problems.

Let's see this project:
BEEM - BEEM - Android XMPP - BEEM - Android XMPP Application

They are building an XMPP client using aSmack library and it seem that it is well running....
I have tried the Beem application...

There is also a page on MSDN website that refer to aSmack library to build an application that connect and exchange messages over XMPP protocol:
XMPP code examples (Live Connect)

Take a look also to this page where the author talk about using aSmack library:
Small test of Asmack XMPP client library

Well, it seem that aSmack is well running and it's is also easy to implement on an Android device.

What do you think ??
Regards...
Fab

EDIT:

looking better on the Beem pages, I see that 13 days ago they switched from version 7 of aSmack to a version 16 maintained by Florian Shmauss of the Beem team (http://beem-project.com/projects/beem/repository/revisions/4c7edc276676).
In the File page (http://beem-project.com/projects/beem/files) it is available and in the repository pages, under /libs you can also find the jar file:
http://beem-project.com/projects/beem/repository/show/libs

This sounds good, nor ?
Fab
 
Last edited:

Smee

Well-Known Member
Licensed User
Longtime User
no news = i've been busy (working) on other things = no good news!

To be honest i was expecting Smee or others to do some research and find out which is the best most up to date and currently maintained 3rd party XMPP library to wrap...

Martin.

Hi Martin,

Very sorry, my bad.... i was intending to do some checking out and i got called away for some time. Not being doing too much coding. Apologies :sign0013:

Having read the latest threads it seems a helluva lot of work for you. Starting to wonder if it's worth it ?????

Cheers
 

lymey

Active Member
Licensed User
Longtime User
Xmpp

The Beem project seems to still be alive with very recent activity, if they are using asmack that would seem to be the way to go.
Overview - BEEM - Android XMPP - BEEM - Android XMPP Application

Perhaps the approach would be to build a minimal library and start adding functionality.

Phase one: log into a server, establish presence, see who is present in a contacts list, invite and accept invitations and of course send and receive messages!

Phase two: attachments

etc