验证 C2DM 身份验证令牌 - Android / Urban Airship
我(尝试)通过 Urban Airship 在 Android 上使用推送通知。
我已经注册了 C2DM,并收到了确认电子邮件,生成了我的身份验证令牌 - 但是当我尝试发送测试推送通知时,我收到此错误:
C2DM push to apid ***ID number here*** failed due to invalid auth token
如何验证身份验证令牌是否正确?
I'm (attempting) to use push notifications with Android via Urban Airship.
I've register for C2DM, and received the confirmation email, generated my auth token - but when I try to send a test push notification I get this error:
C2DM push to apid ***ID number here*** failed due to invalid auth token
How can I verify that the auth token is correct?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
身份验证令牌是否包含在 POST 的标头中?我能想到的唯一原因是身份验证令牌未发送或已过时。
Is the authentication token being included in the headers of the POST? The only reasons I can think of are that the authentication token wasn't sent or is old.
也许原因是区分大小写的 auth-header,请参阅:
c2dm 401 错误收到id和auth token后发送消息
希望有帮助,
问候 CL
Maybe the reason is case sensitive auth-header, see:
c2dm 401 error when sending messages after receiving id and auth token
Hope that helps,
regards CL