I wondering any solution to make an real time chat like wechat or whatsapp. I having researching but most of them are just mention use 3rd parties server. I already have my LEMP server setup so I would like to use my own server instead of 3rd parties.
I mean if I have 10K download my app from either google or app store. I want them be able chat with one another in real time just like whatsapp. How can I let them retreive the new data that send by another user in real time without using any library or 3rd parties such as XMPP, PUSHER or PARSE?
Sorry for my grammar error. Any Suggestion apperciate.
If you have setup your web server communication could be done in real time web sockets https://www.websocket.org/ . You could send and receive messages in json formats . Also have a look at Stomp http://stomp.github.io/
I would recommend Websocket related solution.
Try Socket.io or Firebase. They are both easy to implementation similar function and are also scalable.
Related
I've just started off with Parse.com and I'm loving the simplicity and effectiveness of the service so far.
My app will have an instant messaging feature for which, I realize, Parse is not suitable. I would still love to use Parse for user registration, easy Facebook and Google integration, and all the good things that come with it, but I also need to provide IM in my app.
I want to host my own XMPP server and somehow integrate this server with Parse.
My question is whether it will be possible to verify and create XMPP chat sessions between my users through Parse which will act as a middleman that provides username and password for authentication and to notify offline users through push notification, etc.
As I mentioned above, I would like to host my own XMPP server and would like to avoid services like Pusher.
However, I would like to know if there are any self hosted alternatives that have all the features of Parse as well as IM capabilities.
I used to use Parse.com as a mobile application server. I ended up moving to Amazon EC2 server on march this year. Because my users couldn't login Parse.com. This situation happens 1,2 or 3 times every week. Customers of Parse.com share servers which runs on Amazon Cloud Server.
If you think your app will be able to attract a lot of users, I think you better start with Amazon EC2. My server which runs on AWS has never gone down since I moved to this.
Although Parse.com provide simple and easy APIs which decrease repetitive work load for mobile applications, It is worth for you to implement them on your own. I think that can save your time eventually based on my experience.
Hi I need to develop a fully functional IM solution (like viber or whatsapp) for android. It will have the basic chat features plus many more. Can any one direct me on this. I don't want to re invent the wheel so my target is to use the existing thing as much as possible for the chat server etc (some thing like jabber). If one can direct me for this, or give me some good advice for this it will be a great help.
Edit -
I will extend the application future to allow other platform clients like Windows Mobile or iOS clients. In that sense what would be the best technology to implement the server? It must handle real time traffic well. Will I be able to wrap or extend some sort of a XAMPP server to get my work done?
This is what you need. http://developer.android.com/google/gcm/index.html
It has everything you need for developing applications like viber, gtalk, instant messaging sistems, global user notifications etc...and its pretty easy to implement.
A good solution if you don't want to reinvent the wheel is to create a Jabber / XMPP client on Android and all other platforms.
Server-side, you can use an OpenFire server for managing the roster and conversations with the Smack Library
Google Cloud Messaging as mentioned Janbo is the best way for sending push notifications to your mobile app.
What you could look into, is something like Firebase. They have an incredible api for such applications
firebase link to android docs
Plus it gives you a backend at the same time for free.
I have go through several posts in the internet but did not get a straight and clear answer for this.
I am doing one app on android which needs data to be sent/received from a database over internet. So how I can send/receive messages from my remote database on my android device?
Is there any messaging framework available currently in the android to do this type of task?
One method I thought of is to have PHP scripts at my web server and I will call those php scripts from my android httpClient. But its a bit tire some and error checking also a bit problem and retry mechanism also not there.
Please suggest a good way.
Google have a service for that.
Google Cloud Messaging for Android
Google Cloud Messaging may be suitable just for sending push notifications to android devices and things like that. And XMPP could be used to send messages from one android to another. So what you have taken, using a PHP script and calling it using a URLConnection or HTTPConnection is a better way to make transaction with a remote database
I am working on an home automation system my android application can turn lights on and off using bluetooth, i want to add another feature of controlling the devices from webpage.
Can anyone tell me what is the easiest way to do this, i know GCM(Google Cloud Messaging) is the best solution but is there any other better or easy way of doing it.
And if anyone has some working piece of code, please share it with me; I want to finish this project as soon as possible
If you have a backend built using PHP, Rails etc you can have API's that the app can call and check for instructions. However, this has the side effect of draining he battery due to continous polling.
If you don't wanna go the "polling the server periodically" way, you can use GCM as you mentioned.
You can send data using the JSON data format. This is easily the lighest and most versatile data format used by many web and android apps and has tremendous support from third party libraries as well.
Here are some tutorials for this:
http://developer.android.com/guide/google/gcm/demo.html
http://android.amolgupta.in/2012/07/google-cloud-messaging-gcm-tutorial.html
http://www.londatiga.net/featured-articles/how-to-send-message-to-google-cloud-messaging-gcm-server-using-json-and-php/
http://fundroiding.wordpress.com/2012/06/29/google-cloud-messaging-for-android-gcm-simple-tutorial/
http://androidjayavelu.blogspot.in/2012/07/google-cloud-messaging-gcm-tutorial_27.html
I have a server that I run, I'm not very good at that, but I'm making an android application, and I was wondering if there was a way to link two phones in real time where I could send a small amount of information, like a number or something. Or even something I can put on my server that would send some type of notification to the one client once the other client submits the information.
Use XMPP.
To implement it no android, refer to this question: XMPP and Android
For the server, refer to this one: Good XMPP Java Libraries for server side? (the accepted answer list libraries to many languages.
You could also try SMS. Might be a bit easier.