我正在尝试使用 Phonegap 构建和 GCM 创建一个简单的 Android 推送通知应用程序。我目前可以使用 Phonegap 插件获取 Android 的设备 token 并将其存储在我的数据库中,没有任何问题。
我只需要知道我是否仍然可以使用 GCM(Google 云消息传递)还是需要开始使用 FCM(Firebase 云消息传递)?
我在 Google 上找到的任何教程都是关于 GCM 的,他们都说要在 Google 控制台的 Google 云消息传递部分下启用“Auth & API”。但是当我在 Google 控制台中访问 GCM 时,我没有看到类似的内容,而且一切似乎都与 FCM 有关,当没有有关如何将其与 Phonegap 构建一起使用的信息时,这令人沮丧!
Google GCM 是否仍然可用,或者新应用“必须”从现在开始使用 FCM 吗?
我的意思是 Google 控制台已经够令人困惑的了,他们每个月左右都在改变一切!!
有人可以就这个问题提出建议吗?
最佳答案
云消息传递 (GCM) 现已成为 Firebase 的一部分,另请参阅 this link .
Firebase 云消息传递 (FCM) 是 GCM 的新版本。它继承了可靠且可扩展的 GCM 基础架构,并添加了新功能!
If you are integrating messaging in a new app, start with FCM. GCM users are strongly recommended to upgrade to FCM, in order to benefit from new FCM features today and in the future.
GCM 是否会被弃用?
We will continue to support the current version of GCM Android and iOS SDKs because we know a lot of developers are using GCM SDKs today to handle notifications, and client app upgrade takes time.
But all new client-side features will be added to FCM SDKs only moving forward. You are strongly encouraged to upgrade to FCM SDKs.
简而言之,停止使用 Google 开发者控制台才能使用 GCM,请使用以下命令: https://console.firebase.google.com/?pli=1 ,如下图。
关于android - 谷歌 GCM 还可用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39686613/