When the message is posted to Google websites, the HTTP response
contain the ID which is always unique. Also, the uniqueness seems to
be before the "%c". Take a look at the ID I got today then what I got
yesterday.
0:1297794402942676%c7a1f70d00252358

What is the use of the ID that is returned? I am assuming this is some
kind of a message id that is used by Google to identify each message.

I am not able to receive the messages from cloud even though I receive
200. Is there a place where I can check what happened to the messages?
Is it possible to query the status of these messages using the ID
given?



On Feb 14, 3:30 pm, Indu <[email protected]> wrote:
> I am trying to build a test app for C2DM message.
>
> Here is what I've
> Registration:
> package name: myapp.test
> published on the market: no
> contact email: my gmail account (all emails are same, lets say
> [email protected])
>
> Phone:
> I've signed up to sync google account (in fact with the email account
> I've registered [email protected])
> I am using the google package for C2DM. So, i am using the registered
> gmail account [email protected] in the C2DMBaseReceiver.java.
> When I run my app, I get the registration id at C2DMReciever.java.
> I've the following set in my AndroidManifest.xml:
>
>   <permission android:name="myapp.test.permission.C2D_MESSAGE"
> android:protectionLevel="signature" />
> <uses-permission android:name="myapp.test.permission.C2D_MESSAGE" />
>
> <uses-permission
> android:name="com.google.android.c2dm.permission.RECEIVE" />
>
> Server side:
> I run JBoss on my local machine.
>
> I send the message to:https://android.clients.google.com/c2dm/send
> parameters:
> registration_id: the id I recieved
> collapse_key: None
> data.message=test  <== this is the message I expect to be sent.
> [email protected] <== I am not sure, if this is required.
>
> conn.setRequestProperty("Authorization", "GoogleLogin auth=" +
> authToken); <== authtoken uses the email I registered with
> ([email protected]) and the password for the same.
>
> The response to the HTTP post is 200. and the response line is:
> id=0:1297724645037768%c7a1f70d00252358
>
> So, I am assuming it is successful.
>
> However, I never receive the message on the phone.
>
> Am I doing it right? I feel I am so close, but yet so far :-( Your
> help is appreciated.

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

Reply via email to