Android: Implementing Push Notifications

Happy Independence Day Anniversary ( in arrears – I just realized it’s past midnight already )

I spent the last couple of days working on an android application and it’s been a joyful ride maybe because this time around, I’m serious about it 🙂

As I dug deeper into the documentation and began implementing required features of the application, more and more creative ways of structuring the actual implementation and getting things done came up. Like below –

I have been thinking about the most effective way to communicate with the limited group of users (40) of the app and without polling my web server periodically or sending emails, sms or worse – phone call. Welcome – Push Notifications!

Over the past couple of years push notifications have become a standard in the mobile space, and it is readily available on the android platform. It’s called the Android Cloud to Device Messaging Framework.

Android Cloud to Device Messaging (C2DM) is a service that helps developers send data from servers to their applications on Android devices. The service provides a simple, lightweight mechanism that servers can use to tell mobile applications to contact the server directly, to fetch updated application or user data. The C2DM service handles all aspects of queueing of messages and delivery to the target application running on the target device.

This means that you can design your own app and push new messages to it, anytime.

You can find out more on C2DM here