Reputation: 4057
I try to test c2dm app. I have sign up for Android Cloud to Device Messaging. http://code.google.com/android/c2dm/signup.html
For example:
Contact email * Email address we should contact when you've been whitelisted: [email protected]
Role account email * Google Account ID that will be used for sending messages to C2DM: [email protected]
I register from my app and sender id ([email protected]) to c2dm service and i get registration_id.
After that my third party server must get ClientLogin authentication using email and password. From which email? The whitelisted email ([email protected]) or sender id ([email protected])?? I try both email and from this process i got authorization_id.
But when i use the registration_id and authorization_id to send message to C2DM Server, i got response codes 401 Unauthorize. I use authorization_id from whitelisted email ([email protected]) and sender id ([email protected]) but none worked.
What could be the problem? Thanks you.
Upvotes: 3
Views: 4772
Reputation: 4057
After i try again it's working now, my third party server must use sender id ([email protected]) to get ClientLogin authentication and from this process i got authorization_id.
And i use the registration_id and authorization_id to send message to C2DM Server. My device receive the message.
Upvotes: 2