i want to create android and iphone chat app, and i want to use XMPP using Nodejs. so i don't know about how node-xmpp-server will communicate with android app.
can node-xmpp-server can communicate with android app? if yes than, how can i create simple node-xmpp-server and simple android app that both can communicate.
i want use nodejs, xmpp and android if you have any other solution please let me know.
i have idea about socket.io but i dont want to use that.
please guide me,
thank you in advance.
If you are opting node.js at ur server then I would suggest you to use Socket.io which is a better fit for chat apps onnode.io.
it provides client support libraries for android aswell.
have a look at this and this.
i recomended you to using xmpp, why, xmpp is minim resource fro mobile apps, i have created some apps using socket.io lib, but it need more than xmpp resource, for example in socket.io my apps need 100mb of ram, using xmpp, my app need 50mb of ram
Related
I'm currently developing an android application. My application allows users to choose a picture from a gallery, add a comment and send it to the server. The server then saves it in database.
Currently I'm using HttpUrlConnection at client side and Dynamic Web Project with a servlet to process on server (I'm using eclipse with Apache Tomcat)
So the questions are:
Is it a proper use of this technology to develop my app. (does it violate any rules? Sorry I'm a newbie)
Does this technology affect anything if i want to expand my app?
Are there any better technologies to use in this situation and is it worth to use it?
No I think it is a better way to develop this. I have also develop a chat based app usign the same technologies.
It doesn't violate any rules. There are many apps in the market usign the same technologies.
Q-3.Are there any better technologies to use in this situation and is it worth to use it?
You can also use php or any other server side scripting language to do the same.
Because when you want to host your java app you may find difficulty for java hosting but for php and asp you can easily find hosting services.
I answer in order:
1- the client is different, the client is recomended create an android application.
2-You need have clear this: Android is an application, the server has to attend petition from android. The conection could be using webservices, API rest, or others ways.
3-Android need Java to be native, in the server side you can use, Ruby, PHP, Java, Python or any server programming languaje side. Is your choice.
First I am completely new to programming world.
I am trying to develop an app which will also have a website. I want to have a chat feature in it . After googling I found xmpp servers such as openfire jabber, etc and smack and like libraries. I understand that the the xmpp server can implement general chat features but do I need to install the xep files to get to use xeps?
What do I need to do on the server side and client side to implement the xeps?
You don't need to do anything to implement core XEPs on the server so no need to worry there (especially as you are only doing chat).
I'd suggest prosody.im as a quick easy server to set up and use rather than openfire.
I'd then look at the asmack library if you are doing android development.
Cheers, Lloyd.
I strongly recommend you this book:
Professional XMPP Programming with Javascript and JQuery - Jack Moffitt
I'm building single chat an application javascript+strophejs just reading this book.
Good luck.
I want to implement a chat server with many Android/Blackberry/iPhone devices connecting to it.
Is there any preferable way to do it. Or can I get any good free/opensource server side solution for it.
Thanks in Advance.
You can take a look at Scrigno. It's an SDK (iphone & android) that also includes chat between app users (also the server-side). It doesn't support Blackberry though.
I have a client who has a requirement for a chatting app. This app should make communication possible on Android and Blackberry.
Wonder if this is technically feasible? If yes then how? Any clue?
Check out WhatsApp—you can send text, pics and more.
Yes, all you need is a chat server and clients on both mobile devices that utilize the server.
All these frameworks support web services, so its quite easy to create a web-service to handle this on the server for you.
You can probably skip the server and let them talk directly to each other.
If you are looking for a technique to build three apps that can chat with each other regardless of phone OS this surely can be done.
You need to look for a chatting standard that is covered with libraries for all the three systems. I would look into Jabber/XMPP. It is the most commonly used open standard for submitting messages and at least for Android there is the Smack library that will run on Android and give you all the necessary functionality. I don't know
which libraries can be used on iPhone or BB but there should be something available at least on the iPhone.
We are undertaking an Android project but need to connect to postgreSQL server which we use throughout our other projects.
Any suggestions on a starting point for this?
Is there anything out there (paid or unpaid) that will allow us to achieve this?
I realize that this is a pretty general question, and although we have extensive experience with writing desktop client/server apps, we have little experience with programming for mobile devices.
I would write a RestFUL API or WebService to be used as front end for your Android device to connect to your PostgreSQL backend.
I don't think you will be able to connect directly your Android App to a PostgreSQL database.
I'd go with a lightweight REST interface that would talk to PostgreSQL in the backend. Have a look at Simple.
I would approach this by implementing an intermediary web service. The Android application would send requests to the web service, which would serve as a gatekeeper to isolate the PostgreSQL server from the internet at large.