On Dec 11, 3:38 pm, smoogli <roy.ben.ha...@gmail.com> wrote:
> I bumped in C2DM which is, as far as I understand, the equivalent to
> iPhone Push. Seehttp://code.google.com/android/c2dm/
>
> It is required that there is a 3rd party server that sends messages to
> the C2DM server.

In theory: No.

But 'the C2DM server' is Google (https://android.apis.google.com/c2dm/
send), which routes the messages to the phone (actually its the
Android Market app that does the routing) and  the C2DM server
requires a Google login authtoken (which you get by logging into the
Google account used for C2DM).

So, in practice: Yes, as the sender needs the authtoken (the login
credentials for the Google account used for C2DM).
So unless you keep them safe on a server, you'll have to hard code
these credentials into your app, exposing them and making any skilled
hacker able to log into the account (and, for example, disable
C2DM :-)



> I'm writing a server-less application.
>
> 1. Is it possible that an Android application will communicate with
> the C2DM directly?

C2DM works like this: You App gets a registration_id  (actually from
the Android Market app that does the routing)

Those that wants to send a message to the device needs to know that
registration_id + authtoken (login credentials for the Google account
used for C2DM).


> 2. Can such solution work for pushing small messages to applications
> installed on other devices?

Thats the idea of C2DM

-- 
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