Gibberbot I have been trying to get on Gibberbot from now some time but I am getting only one error. "Unable to sign into the XMPP service. Please try again later. (Detail: Cannot connect to your server. Please check your connection.)"
https://github.com/guardianproject/gibberbot
I've been using asmack library to connect from Android client to the OpenFire XMPP server. Guess, it can be used for any other server, too. This asmack library provides a set of classes to connect, create chats, see roster etc etc. Although this asmack project, as I understand, is not being actively developed recently, it still worked for me fine. Asmack stands for Smack for Android, I guess.
Related
Present Setup
I am trying to build a WhatsApp like chatting app on Android.
In the backend hosted on cloud, I have setup an Ejabberd Server.
Now using smack library on Android, I can connect and message other users via Ejabberd server I setup on my cloud.
Context
This works fine for now, but later I might want to move to MQTT based custom solution for chat replacing Ejabberd and that will force all my app users to compulsorily update their App, since app right now has in its source code stored URL of Ejabberd Server and directly communicates to it.
To solve this problem, I am trying to create a layer of API endpoints so that all communication happens from client phone to ejabberd server via API layer. So tomorrow if I replace Ejabberd server with custom MQTT solution (for scale), then I won't need my app users to update app, since API endpoints have same URL, and I can simply change code behind my API layer, thus keeping me free of depending on Ejabberd forever.
TLDR : Problem I am facing
I am not getting any resource on how to create API layer instead of letting client phones directly communicate with Ejabberd Server. Problem is as per XMPP protocol, client & Ejabberd server directly establish a persistant connection, so how do I put my API layer in between? Its been weeks of headbanging by now and I am stuck.
You can't really put your API Layer between this because XMPP is not publish/subscribe like pubsub.... and something HTTP API is also bad for chat because the client has to request everything and the server can't push anything. I would recommend you to stay with XMPP because it's made to scale very well.
I want to send and receive messages (e.g. via STOMP) from/to my server using Spring.
On the server-side I got following code from the Spring Documentation.
Is there a working android client (with code sample) how to communicate with the server? My target is to connect devices to each other via Internet to make a real-time game. By the way, are there other good approaches to get it started except via websockets?
Another approaches:
Android cloud messaging
Socket IO
XMPP
Websocket libraries:
AndroidAsync
android-websockets
Java-WebSocket
and many more.
The code is incomplete, there's no spring boot stomp configuration and you don't specify how you persist the object response.
I'm working on an Android stomp over WebSocket client. I suggest you check what the client the receive and how it payload string is converted into the object.
My project is still a work in progress, but it could be useful, I hope.
spring boot backend
android client
I have downloaded a code for XMPP Android chat client from here.
I want to setup my own XMPP Openfire server with this code, I cant find any config file there, can anyone tell me how to setup my own XMPP server with this application, or maybe I am missing something?
Download openfire from this link and install it on server, you can also install in on your local machine as well , it require Java Run Time Environment to be already installed on your system. There are already lots of tutorials/guides available for openfire installation.
Once you have installed openfire then you can run it alongside any XMPP client. It could be Pidgin, Gajim, PSI or Android based Conversation, Yaxim clients.
I would suggest you to write your own client because if you are new to android you might not be able to grasp completely How XMPP works at client side. I hope it help a little
I have just read that Conversations will automatically look up the SRV records for your domain name which can point to any hostname port combination.
So my problem is solved now. Just read the README.MD.
I am making an android project for which I need to use GCM CCS. So I chose openfire server
as third party app server. I have Installed and configured openfire server. I have sample app server written in Java, using the Smack library with me https://developer.android.com/google/gcm/ccs.html.
Now I want to implement this code in openfire server. I have followed "Building source code" from igniterealtime documentation (http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/source-build.html#jar).
But still dont get any idea how to edit(write/implement/access) code for openfire server. I have successfully installed and configure ant in my pc.
My basic question is : how to make openfire server to work according to our needs?
I am very new to all this so kindly share any good tutorial or material regarding customized XMPP server. Thanks in advance...
I don't know much about GCM CCS and those things. For openfire development you should look at writing plugins to openfire. One can use openfire API to write plugins to extend the functionality of the server. Have a look at existing plugins and plugin development using openfire.
If your need is to change the functionality of the server. You have already build the server. The source code is there, just look into your required module, start placing logs first, touch minimal functionality and then change it according to your needs. Check the license schemes as well.
I am new to Android programming.I have completed the basics though and wish to learn XMPP for making a chat application on Android. I've gone through tutorials, but have not got the way to use a custom pc as server for the application.I want to use my laptop as a server for sending messages between 2 android devices.My laptop should be able to recieve and direct the messages between the two.Can anyone please help me get started?
First of all, you need to install in your laptop a XMPP server. Here are a list of available ones. People used to say Openfire is easy to install and configure, but to production purposes Ejabberd (linux and mac only) seems to be more robust.
To develop your app, you can use Smack, which is large well documented, with code snapshots to connect to a server, create a chat, send and receive messages etc.