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.
Related
I want to build an Android application using XMPP protocol for sharing real-time data. For this, first of all, I have to setup XMPP Server and best server to use is Openfire. I tried to install this server on my Windows PC, but unable to setup correctly.
This is the download link https://www.igniterealtime.org/projects/openfire/ from where I have downloaded the Openfire.exe file. After Installation it opens a browser window with URL=http://localhost:9090/ but the page shows "This site can’t be reached localhost refused to connect. Search Google for localhost 9090 ERR_CONNECTION_REFUSED"
Can anyone help me to resolve this issue or suggest me the installation procedure? Also if you have any other suggestion to use another XMPP server kindly let me now. I want to transfer data in real-time from one Android device to another.
Thank you for reading my post and replying back.
I am trying to deploy a XMPP server on a remote host like example.com, and create a simple App in Android studio as a client, Several people will be able to install this Instant Messaging(IM) App on their android phone and start chat with each other over the internet.(Similar to Telegram)
What I have done:
I have installed Openfire on windows locally.
I found a simple source code for android studio, and could configure it to work with Openfire locally. Right now I am sending and receiving messages in Genymotion simulator between users I have defined in Openfire.
Problem:
1- I want to deploy Openfire or any other XMPP server on my own host which my classmates can install my android App and able to talk with each other. Fortunately, couldn't find step by step solution.
2- For test purposes, is there a free Openfire web hosting site to deploy my own server and text my android client with it?
3- Or if you have any experience with Xabber, And Conversations clients please comment here, I couldn't use Xabber, it is connecting and reconnecting, and couldn't figure out how to add friends in Conversations client to send messages.
there are many free hosting sites available.. but it might be little slow
I have used these two,
thefreecpanel.com
byethost.com
but I think you cant install openfire on it, as it has setup that you need to run (.exe file), but this setup is only for first time
you will have to host them on a virtual machine on a cloud.. try azure for students, i think in student free account you can make a virtual machine.
I have checked conversations and it is too good. ChatSecure was also good but had too many issues.So, I have made my own xmpp functions and classes
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.
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.