How to Troubleshoot Android GCM 401 error?

后端 未结 3 2008
长情又很酷
长情又很酷 2020-12-14 10:28

I\'m getting many 401 Unauthorized errors when trying to connect to Google Cloud Message Server.

Our code was working for some time on

3条回答
  •  悲&欢浪女
    2020-12-14 11:07

    I have solved my problem by creating new API Key under same project. Following this

    Go to Google developer console then Select project Credentials -> Create Credentials -> API Key -> Server Key then add your server ip address where your GCM server code hosted.

    After creating Api key it may takes 5 minutes to be workable

提交回复
热议问题