Question

I have a use case where I need to send some information from my webservice to an Android App. I just got to know about C2DM which is used for such use cases (correct me if I am wrong).

Does someone know how much latency one can expect while using this service? In my use case, I want the message to be sent from the webservice to the phone within 1-2 sec.

Has someone used C2DM and have an idea of how much is the average message delay? Thanks!

Was it helpful?

Solution

Yes you should now move to GCM : -

GCM check it here

If you are going to start with any messaging or push notification functionality then avoid C2DM as more support would be given to GCM (google cloud messaging). Also it has simpler API and more reliability for notification delivery.

Reliability & Delay in messaging check here

Just a thought :

Other option would be to poll data after certain interval of time and that time would obviously be more then 5 seconds or so { your choice }. With that you will make users a bit reluctant as data connection would be always needed and battery would be consumed more. So these things would be replenished by GCM services. But as far as message delivery is concerned its not for sure reliable.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top