gpt4 book ai didi

android - Google GCM 仍然可用吗?

转载 作者:搜寻专家 更新时间:2023-11-01 08:32:17 26 4
gpt4 key购买 nike

我正在尝试使用 Phonegap 构建和 GCM 创建一个简单的 android 推送通知应用程序。我目前可以使用 phonegap 插件获取 android 的设备 token 并将其存储在我的数据库中而不会出现任何问题。

我只需要知道我是否仍然可以使用 GCM(Google 云消息传递)或者我需要开始使用 FCM(Firebase 云消息传递)?

我在谷歌上找到的任何教程都是关于 GCM 的,他们都说要在谷歌控制台的谷歌云消息部分下启用“Auth & API”。但是当我在我的谷歌控制台中访问 GCM 时,我没有看到类似的东西,而且一切似乎都与 FCM 有关,当没有关于如何在 Phonegap 构建中使用它的信息时,这令人沮丧!

Google GCM 是否仍然可用或新应用“必须”从现在开始使用 FCM?

我的意思是 Google 控制台已经够困惑了,如果他们每个月左右都不断更改所有内容!!

有人可以就此问题提出建议吗?

最佳答案

云消息 (GCM) 现在是 Firebase 的一部分,另请参阅 this link .

Firebase Cloud Messaging (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.

简而言之,为了使用 GCM,停止使用 Google 开发者控制台,使用这个: https://console.firebase.google.com/?pli=1 ,如下图。

enter image description here

关于android - Google GCM 仍然可用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39686613/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com