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

