failed gcm registration in android

跟風遠走 提交于 2019-12-17 19:46:04

问题


I'm trying to deploy an application with push notifications. The problem is that I can not get it to work from a device. While using the emulator, everything is ok but when using a cell phone I get a log saying "AUTHENTICATION_FAILED".

I have checked and the Gmail account is synchronized but is always trying to check me out this error.

Could someone give me a hand?


回答1:


This is occurred due to the bad Google Account password. Check your account on the phone.

Bad Google Account password. The Android application should ask the user to enter his/her Google Account password, and let the user retry manually later. Fix on the device side.

Check error codes and explanations here.




回答2:


The problem was that I had multiple accounts on the phone, for those who have the same problem only has to synchronize with an initial account set up the phone.




回答3:


In my case I face this problem due to a firewall on the network which blocked URLs and ports of GCM. I solve it temporarily by using a VPN service i.e. Hotspot.

To solve permanently I allowed following ports and URLs on firewall.

5228 5229 5230

All IPs which are listed in Google's ASN of 15169



来源:https://stackoverflow.com/questions/11942736/failed-gcm-registration-in-android

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