I'm going to use XMPPHP to implement a chat service for android clients. In XMPPHP I had to use third party char server like google talk. My question is instead of using third party chat server, is there a simple way to implement my own simple chat server ?
BTW, there are some free Chat servers - e.g. QuickBlox Chat
Look at it beautiful Android Android XMPP Chat sample - also there is video how it QuickBlox Android Chat video demo works.
I implemented some Android applications with Chat, i used QuickBlox - it's simple to understund how to integrate chat into your application using this sample's code & sample's documentation
Related
I am currently working on a VoIP application. Can anyone tell me which server I use for audio, video calling and text messaging? I searched a lot, but not clear which one is easy to use and more reliable.
For chat you can setup XMPP or FCM. for video call conference setup with WebRTC.
Hangout APIs are also available for both chat and Video call conference.
You can also opt 3rd party WebRTC SDK's like Vidyo.com etc
You can also setup your own XMPP and WebRTC server. though are protocols.
I'm new to android and php, I've been watching tutorials and implementing it. I'm making an app in which i want to send push notifications, I've come across many tutorials but some of them were only implemented on a single device where in my case i want to send it to all my app users(students who will be using my app). If there's any way to deliver messages via notification, I've made an app and in Live section, I want to send push notification inside an activity. How do i do it?
I've integrated firebase in my app but it doesn't support multiline messsage's. I'm fairly new to php, If there's any tutorial I could implement please suggest.
You can use Google Cloud Messaging as well as Fire base Cloud messaging
i am sure to help you this link for multiple devices
Google Cloud Messaging
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
Firebase Cloud Messaging
http://www.androidhive.info/2016/06/android-firebase-integrate-analytics/
I tried searching these issues. Some sites say I need to do some stuff with php in order to make 3rd party server while others don't mention anything. some says it need JSON. Guide me please. PS I am a beginner and know java, XML,SQL only.
You should only need one server. The second server you are reading about may be the Google GCM cloud server? When I did a GCM project a few years ago, I had one server, it happened to be a App Engine instance. It generated events and sent them to Google via the GCM api and then onto onto the device. I don't remember it being that difficult.
I did have more than one server in the mix though, there were others that sent messages to the AppEngine server, but it was not required to send a GCM message.
Google Cloud Messaging (GCM) is a service that enables developers to send data from servers to both Android applications or Chrome apps and extensions.
So if you want to send data to the users of your App then you must have an interface or dashboard from where you can send some data (typically push notification) to the users of your app.
This dashboard (server from which you can send data) can be developed by using PHP or any script languages.
Now a though can come up in your mind:
"I am suppose to develop both the mobile app and the server then what
role does GCM play?"
Yes, GCM is playing a vital role indeed. The server we have to develop is just to design an interface so that you can type your message/notification and select the recipients. Rest of the part of (managing the queue, communication with the apps checking for authentication and all other stuffs will be done by mighty GCM )
In order to have an bird-eye overview you can take a look on this image collected form android hive
Server side coding is doesn't need you to be expert in php. So you can go through to this article. It helped me a lot to learn.
I am developing an application and in that application I need to implement push notification.
Can anyone suggest me how to do develop the server in PHP (Json, Zend Framework if possible) and provide me a good tutorial on push notification?
"Android Cloud to Device Messaging (C2DM) is deprecated". Its new version is Google Cloud Messaging (GCM). There is plenty of information and source code examples on developer.android.com.
Here is another useful post for Android Push Notifications.
Whenever you want to send message to an android device your Server contacts -> Google Server Contacts -> android device .
So you integrate your ZF application with google c2d api . Here you can find one such implementation of this type of integration with ZF
http://blog.digitalstruct.com/2010/11/21/android-c2dm-with-php-and-zend-framework/
I am looking to install Facebook chat and/or Google chat to my web application. Does anybody have a useful tool for this?
You can implement a real time chat in your app with facebook : http://developers.facebook.com/docs/reference/plugins/live-stream
For Google Talk which uses the XMPP protocol, try the strophejs library. You can take a look at the Google talk api docs : http://code.google.com/apis/talk/