I want to develop the notification system where from web application when i click on "Send Notification" button that will send notification to all the device where my apps installed.
I googled a lot and found few clue how to do it.
Cloud google notification.
Pull service.
Pull service runs on device all time so it will effect the device performance.
I have totally confused what to do and which option will be best for me?
Please suggest me and if anyone has development please share me if you have demo apps of it.
Thanks in Advance.
Google Cloud Messaging Reference would be a good starting point.
You have to use GCM - Google cloud messaging for your functionality.
Refer to demo application given in android developer site.
GCM Demo Application
And main link is - Google Cloud Messaging for Android
Google Cloud Messaging for Android (GCM) is a service that allows you to send data from your server to your users' Android-powered device. This could be a lightweight message telling your app there is new data to be fetched from the server.For more details
Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL.Click here.
Google Cloud Messaging for Android.Click here
Related
App is already published on playstore, can anyone explain the proper way or channel to create and send notification to the end user? Where i can also get the info regarding how much device has received the notification and how much user have clicked on the notification and checked it?
Implement GCM(Google Cloud Messaging) in your app and end users should install your updated app (with GCM)
“Google Cloud Messaging for Android (GCM) is a service that helps developers send data from servers to their Android applications on Android devices”. Using this service you can send data to your application whenever new data is available instead of making requests to server in timely fashion. Integrating GCM in your android application enhances user experience and saves lot of battery power.
--https://developers.google.com/cloud-messaging/
GCM tutorial available in this link.
Happy coding :)
I am looking to create an Android app that uses a MySQL database located on a server. When certain changes are made to this database, I'd like a push notification to be sent to some app users. My question is, is the Google Cloud Messaging Service required to implement this? This page http://developer.android.com/google/gcm/index.html seems to suggest that using the Google Developers Console is also required. If so, is it possible to export this project into Eclipse? Thanks in advance.
My question is, is the Google Cloud Messaging Service required to implement this?
Yes and no, if you want to do real push messages then yes it is required however if you dont want to use GCM you can use XMPP to send messages to devices
Push notification can be generated using alarm in android.See this.
But here you are looking to send push notification after certain changes in your database which is located in your server,for that GCM will be a better option.You can find an excellent tutorial of GCM here.
I'm a total newbie in Android programming and I was wondering if it's possible to push a message or notification to my app from a server or computer and displays the message through a toast or an Alert Dialogue?
Yes you can start with Google Cloud Messaging for Android
For more info see http://developer.android.com/google/gcm/index.html
and may start with these tutorial
Using PHP and MySQL
Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL
and using asp.net
Google Cloud Messaging for Android.
Push Messages to GCM server using visual c#.net application (server side).
You can also use a free service like www.AskingPoint.com (full disclosure in the Founder) to send Push or In-App Messages to your Apps. The Advantage of something like AskingPoint is that you can more easily target users using rules and also quickly and easily localize the message into other languages. Hope that helps. Our Android SDK Beta will be out next week.
I want to send some info messages to my users or disable my Android application remotely.
I want to know if it is possible to send message (Not SMS) to my android application from my server. It yes how can I do that?
The former Android Cloud to Device Messaging (C2DM) (now Google Cloud Messaging for Android) is a service that helps developers send data from servers to their applications on Android devices.
In the past there was Cloud 2 Device Messaging Frameword C2DM. It is superseded by Google Cloud Messaging for Android.
You can also use xmpp for that
Documention Found
xmpp.org/
I was just looking at the new Google Cloud Messaging (GCM) and I was wondering if it is possible to use GCM for Instant Messaging on your Android application?
I saw you can send data, like a message, from a server, but is it also possible to send from one device to another one?
And how would this work?
Some example code would be really helpful..
Tnx!
The official docs on Google Cloud Messaging for Android does mention that GCM can be used to develop an instant messaging app.
...or it could be a message containing up to 4kb of payload data (so
apps like instant messaging can consume the message directly).
So we went ahead and created an instant messaging app using GCM. The server-side is powered by Google App Engine. You can read the complete tutorial here. Create an Instant Messaging app using Google Cloud Messaging (GCM)
So it is possible to use GCM for Instant Messaging on Android, to answer your question. However, reliability of GCM compared to XMPP for IM is another topic.
Just my two cents:
I think you should not use GCM for delivering IM. You should have a dedicated server where your Android IM apps will connect to, using a persistent socket connection. Your server will know who is online or not and therefore can present an 'online list' to all the apps.
GCM can come into play, while users are offline or not running your app. A GCM message can be sent to them to indicate 'XXXX wants to chat'. They can then launch your app and automatically connects to a chat session.
Google has said that the delivery of GCM messages are not guaranteed. This reason alone is not a good idea to rely on them for Instant Messaging.
Try pub nub - it is pretty easy to implement - send Im from one mobile to another - simply fire up the web page (see link) in the browser , and chat between pc, mobile - and works - with 'no server'. Code is for javascript but they also have java. Chat app using jquerymobile web app framework
You might want to check out how a server sends a message to the GCM Service. It is possible to use php on Server side so it should be possible to adapt that to a POST request directly out of your application. However, to communicate you need the registered ids of the devices you want to send data to. Means you will need something to store and get them. Best solution would be your own (web) server which stores all ids and handles the Message sending.