微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐