I'm making an Android application and I want to get notifications like in WhatsApp – as the message comes. If any updates are made on the server then a notification should come to the user so he can check the application. Any help would be appreciated.
Firstly you need to integrate GCM with your system, so application need to get sender_id from google and put it to your server. Then if you want to invoke notification on your app you need to send message using this sender_id.
Here you can find nice tutorial. If you will have any question just give me a word.
I hope it would help you
You need to use Google Cloud Messaging. With it you can send information from a server to an Android device. The Android device will be waiting for messages from the server instead of polling the server at timed intervals.
Related
I'm currently working on an android app that can be used by Admin to send sms messages to all users that installed my app. MustPls must I use cloud messaging or I can use my SQLite. But Ii need to use internet for sending the message. Would someone Pls can some one help me with advice or guidelines guidelines to accomplish this task? Thank you all
there is no way to send notification using SQLite. u can use FCM to send notification directly from firebase or generate notification from admin module and receive on user module. you have to use firebase any way.
I have set up push notification from Firebase console and I can send push notifications. However, I cannot send device-to-device notification yet. As I gather I would need an external app server that would observe Firebase nodes for change and then would fire off a notification via FCM.
I have seen similar question in SO here and a good but brief and not so complete explanation by Frank van Puffelen here. But I am still quite confused. Any tutorial or help as to how I can set up an app server (XMPP here) that would do the communication between client app instances and Firebase for sending notification when ChildAdded or modified and handling the key exchanges would be appreciated. (as I understand, FCM needs XMPP protocol for sending upstream notification)
Any help would be appreciated.
Following this tutorial.
Send Notifications from Server
What you can do is, setup an external server using your favorite technology to listen child_added or changed and respond to the notification requests.
We used the node.js app engine to handle this. Again the funda is to move people to use other cloud paid services.
Yours it's a good question... The firebase can't send push device-to-device, then if you want to do this one, needs a app server as you said. The other possibility that I thought for a long time is a create a independent service to do two things, the first one is constantly controls events as onChildAdded, for exemple and the second one, throws local notifications.
This is solution that i think works fine before to create a app server... At final if you try to do it, explain us your experience please! Greetings!
I follow this link PLease see here . Can anyone tell me exact process to communication between two mobile devices in terms of push notification. Please help me.
GCM is a google cloud messaging http server.It is used for providing notification service on android phones any notification you receive on your phone is sent through GCM.Every device using a specific application is registered with GCM. Even if you want your application to send notification to the user on occurrence of something it's not possible without GCM.
I want to send notification from PHP application and same time it should be received by android application. I have no idea about it. I just know i do not want to use thread to be schedule for seconds and call url but get activate when notification sends from PHP server.
You required to use Android Cloud to Device Messaging C2DM API of Android,
Please find a useful example from here.
I am getting data from the server, and I want to show a push notification in android. How can I do this?
Be clear to yourself What do you exactly want, I think you are using just a web service to get data. For push Notifiaction you need to implement Android Cloud to Device Messaging and here you can find complete tutorial.
Cheers