Parse Push Notifications Using REST API - android

I have searched all over the internet but didn't get what I wanted. I want to send GCM notifications to my android app using parse rest api. I know that there is a clean documentation on Parse.com but i am confused about that what changes are needed in my application to receive those GCM pushes. I am able to send pushes, they are showing in the GCM history on developer page in google but i am unable to receive them on my phone which is irritating because there is no tutorial on what changes to be made in my application. Please if anyone can help.

All you have to do is add the push receiver into the AndroidManifest, and this is documented.
You have to make sure the bundle id matches your app's and also there may be a GCM identifier you need to change

Related

Send push notification from one Android device to other Using GCM

I am been using Parse for sending push notifications earlier and that does not seem to work well. I heard from the internet that we can send push notifications from one android device to another using GCM and I followed this official documentation. Before I get to implement it, I just need to know whether, we can send push notification from an Android device to another using this service.
I have the following doubts
How do I send the push notification to a specific device using another device with the help of GCM ?
What is the unique identifier that I must be using if the above question is possible ?
Should I implement my own backend to save the unique identifiers about which the above question states ? Or is there a way that GCM can handle for me ?
The answers to all your questions are in the documentation itself.
1) Send Upstream message from Device A to the server and send Downstream message from server to Device B.
2) Instance ID API will provide a token which is the unique identifier.
3) Yes you have to implement you server that will communicate with GCM connection server.
All of which is explained on the overview page itself.
I hope this answers your question. There is also a sample you can refer to.
Also, a tutorial here.

Android Notifications like WhatsApp

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.

Android Dev: sending push notification(message/link) from server(.net) to all devices having the app

I am new to the push notification subjet for android and I have an application with a .net web server as well as a remote database. I want to send a notification to all users which opens in a new intent. I have read about GCM and other third party platforms, but I was confused when they mention device registration ID, as I do not know how to get all the ids of all devices installing the app I am developping. Any straightforward tutorial or code helping me solve the confusion please.
Thank you in advance.
May be this can not provide complete answer to your question asked. But still it can help you.
GCM process works in this way.
at the first launch, your application will get the registration id from Google GCM server and give it to application server. Now the application server has all the registration ids in which your app is running.
Now you can easily dispatch push message for all devices.

How can I receive a notification on my phone when a website gets updated?

I'm making an app for android and I wanted it to be able to receive a notification when ever a website changes it's content.
I'm fairly new to app development and have no idea where to start. Any help would be appreciated.
Thanks
First of all you must register your users with your website with a unique key. for e.g. GCM(Google cloud messaging registers user when the start the app.)
For detailed information about GCM go through this link
Note: GCM is free to use.
Then if Your website gets updated you must send a push notification to all registered users and in your mobile application you must register a broadcast receiver to receive that notification and display in your desired UI.
If you don't own the websites:
I think you would need a program (in your server or computer) querying the websites that you care about and comparing their HTTP info for update date. And if you see any updates, send notifications from your server to the app (using Google Cloud Messaging).
Other methods for knowing the last time it was modified: check last time website updated
If you do own the websites:
you could use Google Cloud Messaging every time you update to push a notification from the server.
And here they talk about it and even list some tutorials : GCM in stack overflow
Vogella's tutorial : link

how to make a GCM servlet?

I've been following this guide
and still dont get it (Im quite new to the whole android-stuff, Im sorry).
"1. Create a servlet (or other server-side mechanism) that can be used by the Android application to send the registration ID received by GCM . The application might also need to send other information—such as the user's email address or username—so that the server can associate the registration ID with the user owning the device.
2. Similarly, create a servlet used to unregister registration IDs."
I dont think this guide is very thorough overall but right here I ran into some trouble. Is there any kind code-cracker out there who can help me?
How do I make a "servlet" for GCM?
Thank you in advance!PS. Im using eclipse
You should probably take a look at the GCM Demo Application page, specifically the Setting Up the Server section which shows two methods for setting up a GCM server. I have seen a few other GCM developers using Google App Engine for their GCM servers as detailed in point two of the link.
There are also commercial solutions out there such as AirBop (which I happened to help create), Urban Airship, and a few others.

Categories

Resources