Google Cloud Message(GCM) Unauthorized

如果你發送推撥 Push Notification
遇到 Google 回應 Unauthorized

可以先檢查 Google Develop Console 的 white list 是否有加入主機的 IP
請注意一下是否你的主機有支援 IPV6
如果有也請把 IPV6 address 一併加入
以我使用的 LINODE 來說
設定 IPV4 還是會出現 Unauthorized
設定好 IPV6 就可以正常推撥囉!

PS. IPV4 後面的 /64 可以不用加入,加入會驗證不過

Reference
Android GCM Unauthorized 401 error with PHP

Comments

Popular posts from this blog

CentOS7 如何新增/移除 Rich Rule for firewalld

mac 安裝 mtr

Howto use Postman test Cors