Android C2DM getting (401) Unauthorized

前端 未结 3 1194
伪装坚强ぢ
伪装坚强ぢ 2020-12-17 03:55

I have an Android application with an ASP.NET backend. I have the registration_id for the phone as well as an auth token from google for the application server that is perf

相关标签:
3条回答
  • 2020-12-17 04:38

    I have encountered a similar problem: error 401 "Unauthorized" while trying a google c2dm (cloud to device messaging) code sample. It looks like the example used to work as is, but now Google has changed its conditions. Before running code examples, you have to sign-up:

    http://code.google.com/android/c2dm/signup.html

    I signed up, and the stuff began to work in minutes.

    0 讨论(0)
  • 2020-12-17 04:39

    I've got the same problem, i.e. suddenly my C2DM_ACCOUNT_EMAIL stopped working.

    To solve the problem, just fill the registration again with same info and the same C2DM_ACCOUNT_EMAIL.

    HTH

    0 讨论(0)
  • 2020-12-17 04:47

    Advice corner: Have some confidence in your code every once and a while! And, even Google messes up sometimes.

    After spending about nine hours reading every blog post and article about Google OAuth and C2DM and trying different things in my code, I emailed Google. I'm excited to say that not only did I receive a response very quickly, but also that my account was messed up. Something went wrong while I was registering on their site and although it appeared that everything was working from the registration success email I received, it wasn't. I re-registered and everything works!

    0 讨论(0)
提交回复
热议问题