Which API key for android GCM server

孤街醉人 提交于 2020-01-15 05:34:05

问题


I am confused a little for which API key should I use for the GCM server. In the documentation it says use android api key, which did not work with me and always gives unauthorized. http://developer.android.com/google/gcm/gs.html I used server key which worked for me, but I am wondering why the documentation says that? Am I doing something wrong?

I saw this post also, but I could not get an answer. GCM Push Server side, which API Key to use?

Thanks for advance.


回答1:


Server Key is the one that should be used, because the server is the side that send the push notification.



来源:https://stackoverflow.com/questions/21617240/which-api-key-for-android-gcm-server

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