android - 如何为 GCM 创建 API key ?

标签 android google-cloud-messaging

我在创建 API key 时遇到问题,因为“创建新服务器 key ”和“创建新浏览器 key ”选项不在 API 访问页面中。我是否应该为此付费。

最佳答案

通常在创建项目并保存项目后#您单击左侧面板上的服务并打开适用于 Android 的 Google Cloud Messaging。然后你应该看到这个屏幕:enter image description here

点击API Access,记下图片上标注的API Key

enter image description here

编辑: 以下是详细描述此过程的完整文章的链接: http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

关于android - 如何为 GCM 创建 API key ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13151054/

相关文章:

附加 onClickListener 时,android ListView 触摸动画消失了

ios - Firebase Cloud Messaging 是否支持 VOIP pushkit 服务?

android - MotionLayout - OnSwipe 不适用于 ViewPager2/RecyclerView

java - 振动按钮使android应用强制关闭

parse-platform - 使用解析和 Android 客户端的谷歌云消息推送不起作用

android - GoogleCloudMessaging.getInstance(未知来源)NullPointer

android - 应用程序更新的推送通知

azure 通知中心 - 应用程序卸载

javascript - IFrame Player API 移动设备

Android 二维图形编程