Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Android Blog reader app server-side doubt

I have almost finished the Blog Reader App on Android and I am just wondering about the pushing notifications to the Phone. How does the blog technology works to tell the phone there are new feeds? is by using RSS or kind of an API builted to push notifications? I am asking because I would like to work on a basic project but I am missing this part. thanks!

2 Answers

For pushing notifications to the phone you are looking for GCM (Google Cloud Messaging).

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 instance, a movie uploaded by a friend), or it could be a message containing up to 4kb of payload data (so apps like instant messaging can consume the message directly).

More info [http://developer.android.com/google/gcm/index.html](here).

Thanks man! This solves a lot of troubles with this thing I am doing, I really preciated