我可以在我的应用程序中同时使用GCM和FCM吗? [英] Can I use both GCM and FCM in my app?

查看:171
本文介绍了我可以在我的应用程序中同时使用GCM和FCM吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个GCM实现的android项目。后端(服务器)已经使用GCM编码。

现在是否可以在我的项目中添加Firebase(FCM)并与GCM并行工作?我无法迁移到FCM,因为它是不可能改变我的后端代码,因为它是一个大项目,太多的代码在那里。有没有人做过这样的事情?



请帮忙。提前致谢。

解决方案

不,你不能同时使用FCM和GCM。 GCM是旧版本,强烈建议使用FCM。为什么Google云消息传递(GCM)是Firebase的一部分?它如何与Firebase云消息传递(FCM)相关联?



Google正在投资Firebase,使之成为我们统一的移动
平台。在过去的几年中,我们扩展了GCM,将消息发送到除Android以外的多个平台:iOS和Chrome。由于跨平台Firebase被称为
,因此FCM现在非常适合为Android,iOS和移动网站设计的
Firebase套件。



Firebase的另一个核心价值在于跨功能集成。我们为
添加了其他Firebase功能通过FCM轻松发送消息
的功能。例如,您可以使用Firebase通知功能向您的用户发送
reengagement邮件。



我们认为GCM对开发人员来说更加有用,例如
集成了Firebase的一部分。您现在仍然可以使用新名称Firebase Cloud Messaging或简称FCM获得同样优质的产品,即


GCM我们将继续支持当前版本的GCM Android和iOS
SDKs,因为我们知道很多开发者都是现在使用GCM SDK来处理通知,而客户端应用程序升级需要时间。



但是,所有新的客户端功能都将添加到FCM SDK中,只需移动
前进。强烈建议您升级到FCM SDK。


您可以获取更多详细信息这里


I have an android project in which GCM is implemented. Back-end (server) is already coded suitably with GCM.

Now is it possible to add firebase (FCM) in my project and work in parallel with GCM? I cant migrate to FCM because it is impossible to change my back-end code as it is a big project and too much code is there. Has anyone done something like this?

Please help. Thanks in advance.

解决方案

No, you can not use both FCM and GCM at same time. GCM is the old version and that it is strongly recommended to use FCM.

Why is Google Cloud Messaging (GCM) part of Firebase? How does it relate to Firebase Cloud Messaging (FCM)?

Google is investing in Firebase, making it our unified mobile platform.

Over the last few years, we have expanded GCM to send messages to multiple platforms beyond Android: iOS and Chrome. Firebase is known for being cross platform, so FCM now makes a natural fit in the Firebase suite of features designed for Android, iOS, and mobile web.

Another core value of Firebase is cross-feature integration. We are adding the ability for other Firebase features to easily send messages via FCM. For example, you can use Firebase Notifications to send reengagement messages to your users.

We think that GCM will be even more useful to developers as an integrated part of Firebase. You can still get the same great product, now under a new name: "Firebase Cloud Messaging," or FCM for short.

Is GCM going to be deprecated?

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.

You can get more details here

这篇关于我可以在我的应用程序中同时使用GCM和FCM吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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