Just a note that C2DM is a Google service and is available on devices that are shipping with Google Market. Depending on your requirements you might need to support also some other polling mechanism even when implementing C2DM for some devices.

On 12.07.2010 16:06, Mark Murphy wrote:
On Mon, Jul 12, 2010 at 8:30 AM, Samuh<samuh.va...@gmail.com>  wrote:
Mark>>>Do not not to poll frequently.
I am supposed to poll the server to update the client of the changes
in (almost/near) real time. The interval suggested was five minutes.
Is this too frequent?
Five minutes is so-so. I would make it configurable:

http://www.androidguys.com/2010/03/29/code-pollution-background-control/

Mark>>>No, you have to re-create your alarm schedule on a reboot.
So I will  capture the BOOT_COMPLETE broadcast and setup a new
schedule.
Yes.

This application was originally written for iPhone and there it uses
their Push Notification Service to keep the data on the device up-to-
date. I am supposed to port this application on Android so I am not
sure of the approach to take.
In a year, C2DM will be the right answer. For today, AlarmManager
polling should suffice.


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to