Hi guys,
I have made one sample for xmpp. Its Extensible Messaging and Presence Protocol(XMPP) is a communication protocol for messge-oriented middleware based on XML(Extensible Markup Language).
You need to follow few steps and you get it done in very simple way.
Step 1. If you are try in locally then you have to install wamp or lamp or xampp server. After this start the server apache and mysql. Now you have import openfire database in mysql.
Step 2. Install openfire in your system.If you are trying in local otherwise you can install openfire in your server.
Step 3. Go to below link of github to download my sample for xmpp.
https://github.com/saveendhiman/XMPPSample_Studio
https://github.com/saveendhiman/XMPPSample-Eclipse
If you want to download apk then you can visit direct in play store link
https://play.google.com/store/apps/details?id=com.cool.xmppsample
Also checkout the video from here,
https://www.youtube.com/watch?v=OrL9mepFLQU
Step 4. Enter any id for your xmpp user and you should enter your correct server name and host name from your openfire server.Now enter your opposite user id and then press in online or in android icon.
Chat screen opened.
★★Features have a look at our app Provided you★★
Everything is dynamic. You have to enter ip address of your server where openfire is installed.
Features summary:
- Free!
- Run an XMPP Server
- Use the built-in certificate or use your own for SSL/TLS
- Set users
- Add a Dynamic DNS Updater using the local or public IP of your device
- Enable modules: One to one chat, database, notification and user is online till you want(background
service).
★★Features★★
* One to one communication.
* Emojis.
* Database handling.
* Notification handling.
* Background service you user is online till you want.
* Typing status.
* Online users
* Duration of online users.
* Avatar from roster.
and many more features provided by us.
I have made one sample for xmpp. Its Extensible Messaging and Presence Protocol(XMPP) is a communication protocol for messge-oriented middleware based on XML(Extensible Markup Language).
You need to follow few steps and you get it done in very simple way.
Step 1. If you are try in locally then you have to install wamp or lamp or xampp server. After this start the server apache and mysql. Now you have import openfire database in mysql.
Step 2. Install openfire in your system.If you are trying in local otherwise you can install openfire in your server.
Step 3. Go to below link of github to download my sample for xmpp.
https://github.com/saveendhiman/XMPPSample_Studio
https://github.com/saveendhiman/XMPPSample-Eclipse
If you want to download apk then you can visit direct in play store link
https://play.google.com/store/apps/details?id=com.cool.xmppsample
Also checkout the video from here,
https://www.youtube.com/watch?v=OrL9mepFLQU
Step 4. Enter any id for your xmpp user and you should enter your correct server name and host name from your openfire server.Now enter your opposite user id and then press in online or in android icon.
Chat screen opened.
★★Features have a look at our app Provided you★★
Everything is dynamic. You have to enter ip address of your server where openfire is installed.
Features summary:
- Free!
- Run an XMPP Server
- Use the built-in certificate or use your own for SSL/TLS
- Set users
- Add a Dynamic DNS Updater using the local or public IP of your device
- Enable modules: One to one chat, database, notification and user is online till you want(background
service).
★★Features★★
* One to one communication.
* Emojis.
* Database handling.
* Notification handling.
* Background service you user is online till you want.
* Typing status.
* Online users
* Duration of online users.
* Avatar from roster.
and many more features provided by us.
This comment has been removed by the author.
ReplyDeletei am new to developing xmpp chat server . for the past 2 days i'm try fix this error but till now i cant resolve . waiting for ur reply
DeleteHi please first disconnect and agai n login to server.Make sure username and password should be their.
Deletethanks for ur reply yaar! i disconnect the users from my local openfire but not i cant able to chat only i can login . cant able to communicate in between two emulators .But it shows my users online in server .Still facing the issue "org.jivesoftware.smack.SmackException$NoResponseException:"
Deleteare you using my sample ?
DeleteCan you post your code what you trying.You can post stackoverflow or here. Studio sample is latest one and that is working fine. If you want to take any reference please take it from their.
DeleteThis comment has been removed by the author.
Deletebro i am using ur source code.. i send u the source to ur mail id ..
Deletei have done alot of extra things, okay let me check
DeleteIs there anything i missed in the configurations..???
ReplyDeleteCan you post what configuration you are using.
Deleteconfiguring with my localhost openfire server with 10.0.0.2 and the port address is 5222
Deletepublic static String HOST1 = "10.0.2.2";
Deletepublic static String HOST = "10.0.2.2";
public static final String LIVESERVICE = "liveappgroup@liveapp." + HOST;
public static final int PORT = 5222;
I think the problem is the LIVE SERVICE .. I dont wat to do
Deleteyes if possible, you can here is my mail saveendhiman@gmail.com
DeleteI can check properly
thanks ji.. now check ur mail
DeleteYes.. U're awesome man ... its working after 4 days of my R&D... Thanks for ur guidance and support .. Rocking !!!
ReplyDeletefirst of all very nyc tutor bro ! very useful..
ReplyDelete👏👏👏👏 Great Work
How can i configure my openfire properly in my local ?? i m using linux machine currently .. i had followed the steps and installed .. One more thing how can i get my own server for chat to proceed integrating in my app ??? plz guide me yaar ..
ReplyDeleteNow it wont show my login users in local server ryt .. Guide me yaar .
Hi Naveen, so far as per ur instruction everthing works fine . but ryt now we had a seperate static ip configured with openfire . Now i can able to login ,but cant able to chat . Facing an error :message.getType() ::error & StringUtils.getType() ::Smack
ReplyDeleteorg.jivesoftware.smack.XMPPException$XMPPErrorException: XMPPError: remote-server-not-found - cancel
ReplyDeleteAlso showing this error too .. but both login users are showing online in operfire admin login
Kindly Help me out with this ..
Nice !! one question, does your client re-connects automatically once there is a disruption in network ? I mean.. if your client goes offline, does it gets reconnected back to the server ? I am facing a hard time in this for my project, any help would be great.
ReplyDeleteYes it is.
Delete