问题
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