Android C2DM Invalidregistration

心不动则不痛 提交于 2019-12-08 14:15:31

Ok, It solved. I removed HttpUtility.UrlEncode(px); and everything worked as I expected.

Lewis

I had this problem for a long time until I set the ContentType to-

application/x-www-form-urlencoded

You need to set it to that for both

  • the authentication stage and,
  • the send message.

I then got the NotRegistered error but that is due to not using the same account on the phone as the sender for the server authentication.

Hope that helps others.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!