Android C2DM服务器发送消息

发布于 2024-10-04 21:38:12 字数 1460 浏览 0 评论 0原文

我尝试测试 c2dm 应用程序。 我已注册 Android 云到设备消息传递。 http://code.google.com/android/c2dm/signup.html

例如:

联系电子邮件* 当您被列入白名单后我们应该联系的电子邮件地址: [email protected]

角色帐户电子邮件 * 将用于向 C2DM 发送消息的 Google 帐户 ID: [电子邮件受保护]

我通过我的应用程序和发件人 ID 注册 ([电子邮件受保护])到c2dm服务,我得到registration_id。

之后,我的第三方服务器必须使用电子邮件和密码获得 ClientLogin 身份验证。来自哪封电子邮件?列入白名单的电子邮件 ([email protected]) 或发件人 ID ([电子邮件受保护])?我尝试了两封电子邮件,从这个过程中我得到了authorization_id。

但是当我使用registration_id和authorization_id向C2DM服务器发送消息时,我收到响应代码401 Unauthorize。我使用白名单电子邮件中的authorization_id ([email protected]) 和发件人 ID ( [电子邮件受保护]),但没有任何效果。

可能是什么问题? 感谢您。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷夜 2024-10-11 21:38:12

我再次尝试后,它现在可以工作了,我的第三方服务器必须使用发件人 ID ([email protected ])来获得 ClientLogin 身份验证,并从这个过程中我获得了authorization_id。

我使用registration_id和authorization_id将消息发送到C2DM服务器。我的设备收到消息。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文