I recently wrote a Facebook Chat App for Android using Smack, which is an excellent library and it worked great for that app. I'm currently working on my next chat project on Android and would like to do BOSH, but Smack doesn't support it. I've found a development branch talked about here:
http://community.igniterealtime.org/thread/40768
I was hoping there was something out there that was more stable. Has anyone else found anything?
Thanks!
Every asmack fork I know contains the SMACKs BOSH patches. I have never used them, but I am also not aware of any alternative library that implements BOSH for the Android platform.
To produce custom jars which has got support for BOSH connection. These jars can be found at https://github.com/rajesh-kumar/amqp-xmpp-bosh/tree/master/lib/
Related
I'm following a tutorial where they want me to use android websockets library, unfortunately this library is deprecated and I should now use AndroidAsync.
This should be an easy task for the common Android Developer, but I'm kinda new to Android Development so I would like some help doing this.
I have posted my code as a pastebin because the code is too big to post here.
My code:
http://pastebin.com/dYNAG6eX
The library is already imported into the project, I just need some help changing the code to the correct things.
Now I just looking for any native library that helps me to implement webrtc with native mobile codes (Android Java, iOS Swift)
As I saw that libjingle have no updates around a year I does not sure that I still should use it, I don't want to use webrtc with third-party api such as Pubnub.
How about you guys suggestion or libjingle is good enough ?
Sample are available in the official documentation. Refer https://webrtc.github.io/samples/
libjingle has been "dead" since 2012, all relevant code moved over to https://webrtc.org which, unlike libjingle, has reasonably good instructions for checking out and building on mobile at https://webrtc.org/native-code/
Now the recommended way is to add the official library as dependency to your project.
implementation 'org.webrtc:google-webrtc:1.0.+'
You may refer the AppRTCMobile sample project which can be build by following the instructions given here - https://webrtc.org/native-code/android/
There are sample projects on GitHub which have already done the hard work for you. I found this one to be updated for Oreo.
I am working in android chat app.I would like to use one of the following xmpp client (Tigase, Asmack). But I don't know which one to use . Can you tell me which one is better based on performance and features available in library?
For me Asmack worked just fine. I've had no problems with it whatsoever, also smack has a very nice documentation with a lot of examples. Don't know much about Tigase, all I can say is that I had a lot of fun playing around with smack.
I have searched alot on google and in here to find the best featured API for XMPP client.
I have found the following two:
asmack: .http://code.google.com/p/asmack/
patched smack: http://davanum.wordpress.com/2008/12/29/updated-xmpp-client-for-android/
I cant find any comparison of these two APIs on the internet, so maybe you can help me in which one to choose.?
In the original article of the patched smack he inform that TLS does not work (thats fine I should not use that) I consume that the rest works.
On the other hand asmack is very popular but when I read around the net it seems that it is a little more buggy?
What do you advise me to choose?
Thanks!
asmack is almost the same code as smack, basically what they did is some code refactoring, add some extra methods to extension, changed package order, also they replace DNS class and classes related with Sasl and authentication.
http://groups.google.com/group/android-developers/browse_thread/thread/0a8a0fb16752ba52/631dcf2137e79e7f?lnk=raot&pli=1
If you use asmack you wont have major problem.
I do recommend to Avoid asmack In our last project we faced so many problems due open issues :
http://code.google.com/p/asmack/issues/list
other alternatives are avilable:
https://stackoverflow.com/a/5487854/771300
I am not able to use Smack on Android whereas aSmack works perfectly? When compared the source code it looks somewhat similar, where does the difference comes from?
What is the difference between Smack and aSmack?
Smack < 4.1 does not work on Android, mostly because of APIs missing on Android (e.g. most of the javax APIs). That is the reason the aSmack build environment was born. It is a way to modify Smack so that it can be used on Android.
Besides many minor changes the biggest changes are
Disabling XMPP SASL auth methods that are not supported on Android
Using apache harmony for SASL instead of the javax API
Make sure to read the README and and init the relevant code before doing any XMPP related actions.
More information can be found # https://github.com/Flowdalic/asmack/wiki/Modifications
As the project description states, ASmack adds a set of patches to regular Smack. Check this conversation for further details.
Regards.
You can see how things are done in talkmyphone. I think they are using smack with android.
It modifies Smack to allow it to work on Android.
I am not sure of what those changes are, with the exception of altering the ProviderManager mechanism so that it can load the smack.providers XML file from an Android friendly directory. By default Smack loads this from its own resource directory, which is not reachable in Android.