我想在我的 Android 项目上使用推送通知服务,但是当我尝试生成服务器 key 时,我注意到 Google 的开发人员控制台发生了变化,我找不到可以生成服务器 key 的位置。看了很多教程,还是做不到。
最佳答案
更新:GCM docs 中现在有一条可见的注释说:
Starting from Sept. 2016 new server key can only be created in the Firebase Console using the Cloud Messaging tab of the Settings panel. Existing projects that need to create a new server key can be imported in the Firebase console without affecting their existing configuration.
刚刚检索到我的部分答案here .
- 转到您的 Google Developers Console
- 在左 Pane 中,单击 凭据
- 在 Credentials 选项卡下,单击 Create Credentials
- 选择 API key
- 选择服务器 key
- 填写详细信息。
- 点击创建
届时服务器 key 应该可用。
PS:刚试了一下,还是可以生成Server Key的方法。
关于android - GCM - 如何为 Android 推送通知生成服务器 API key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38292026/