Send a message to the Android C2DM server

I am trying to test the c2dm application. I signed up for Android Cloud for messaging. http://code.google.com/android/c2dm/signup.html

For instance:

Contact Email * The email address we should contact when you were whitelisted: aaa@gmail.com

Role account mail * The identifier of the Google account that will be used to send messages to C2DM: bbb@gmail.com

I will register my application and sender ID ( bbb@gmail.com ) with the c2dm service and get registration_id.

After that, my third-party server should receive ClientLogin authentication using email and password. What letter? White letter ( aaa@gmail.com ) or sender ID ( bbb@gmail.com )? I try both email and from this process, I got authorization_id.

But when I use register_id and authorization_id to send a message to the C2DM server, I got 401 Unauthorize response codes. I use authorization_id from whitelisted email ( aaa@gmail.com ) and sender ID ( bbb@gmail.com ), but no one worked.

What could be the problem? Thank you.

+3
source share
1 answer

, , (bbb@gmail.com), ClientLogin, authorization_id.

register_id authorization_id C2DM. .

+2

Source: https://habr.com/ru/post/1776651/


All Articles