GCM demo server sending message to device raises 401 error

前端 未结 4 1814
既然无缘
既然无缘 2021-01-20 01:50

As many other newbies to java and android i\'m trying to run gcm demo server and gcm demo client on windows, using eclipse to run vertual device and tomcat as a webserer.

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-20 02:40

    I was having this error too,

    enter image description here

    turns out i hadn't enabled Google Cloud Messaging for Android. (On one of my machines, this was automatically enabled while following the same steps, don't know why it didn't do same on the other) Long story short, go to developers console and enable it.

    APIs and Auths | APIs | Google Cloud Messaging for Android

    refresh your browser and try again.

提交回复
热议问题