android – 我可以在我的应用程序中同时使用GCM和FCM吗?

我有一个实现GCM的android项目.后端(服务器)已经适当地用GCM编码.

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

请帮忙.提前致谢.

解决方法:

不,您不能同时使用FCM和GCM. GCM是旧版本,强烈建议使用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.

您可以获得更多细节here

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...