Android GCM服务器的哪个API密钥 [英] Which API key for android GCM server

查看:114
本文介绍了Android GCM服务器的哪个API密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很困惑我应该为GCM服务器使用哪个API密钥。
在文档中提到使用android api密钥,它并不适用于我,并且始终提供未授权的密钥。
http://developer.android.com/google/gcm/gs。 html
我使用了服务器密钥,但是我想知道为什么文档说明了这一点?
我做错了什么?



我也看到了这篇文章,但我无法得到答案。
GCM推送服务器端,使用哪个API密钥?



感谢您的提前。 密钥是应该使用的密钥,因为服务器是发送推送通知的一方。


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.

解决方案

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

这篇关于Android GCM服务器的哪个API密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆