简体   繁体   English

Google Cloud Messaging与Firebase

[英]Google Cloud Messaging vs Firebase

Suppose I have an application in which people suscribes to receive a notification when some event in a bar is created. 假设我有一个应用程序,当酒吧中的某个事件被创建时,人们会在其中征求通知。 I would also like to draw an icon in a google map when a bar is added. 添加栏后,我还要在Google地图上绘制一个图标。 I read about Google Cloud Messaging and also Firebase which Google advertises as the improved version of the former. 我读到有关Google Cloud Messaging以及Firebase的信息,而Google则将它们宣传为Firebase的改进版本。 What are the advantages and disadvantages of both? 两者的优缺点是什么?

Yes No Difference as you read, Google Cloud Messaging is the traditional way to send push notifications and downstream message to Android. 是否与您阅读时有所不同,Google Cloud Messaging是将推送通知和下游消息发送到Android的传统方式。

Now with the addtional of new product Firebase (bought), google making some changes for efficient use. 现在,随着新产品Firebase(已购买)的增加,google进行了一些更改以有效使用。 So they just renamed GCM as FCM (new improved version), along the change now you using FCM can send push notifications to iOS devices as well and more new features, 因此,他们只是将GCM重命名为FCM(新的改进版本),随着更改,您现在使用FCM可以向iOS设备发送推送通知,以及更多新功能,

In fact you can register push token using Firebase and send api signal to GCM server, still the message would reach the device. 实际上,您可以使用Firebase注册推送令牌并将api信号发送到GCM服务器,但消息仍会到达设备。

You can read this FAQ, https://firebase.google.com/support/faq/#gcm-fcm 您可以阅读以下常见问题解答: https://firebase.google.com/support/faq/#gcm-fcm

Google Cloud Messaging is DEPRECATED 4/10/2018! Google云消息传递已于2018年4月10日停用!

As of April 10, 2018, Google has deprecated GCM. 截至2018年4月10日,谷歌已弃用GCM。 The GCM server and client APIs are deprecated and will be removed as soon as May 29, 2019 . 不建议使用GCM服务器和客户端API,并将于2019年5月29日将其删除 Migrate GCM apps to Firebase Cloud Messaging (FCM), which inherits the reliable and scalable GCM infrastructure, plus many new features. 将GCM应用程序迁移到Firebase Cloud Messaging(FCM),它继承了可靠且可扩展的GCM基础架构以及许多新功能。 See the migration guide to learn more. 请参阅迁移指南以了解更多信息。

https://developers.google.com/cloud-messaging/faq https://developers.google.com/cloud-messaging/faq

Why is GCM being deprecated? 为什么不建议使用GCM?

Simplifies client development. 简化客户开发。 You no longer have to write your own registration or subscription retry logic. 您不再需要编写自己的注册或订阅重试逻辑。 Enables a new serverless notifications solution with a web console, the Firebase Notifications console. 通过Web控制台Firebase Notifications控制台启用新的无服务器通知解决方案。 With the Notifications console, anyone can send notifications to target specific audiences based on Firebase Analytics insights. 借助Notifications控制台,任何人都可以根据Firebase Analytics的见解向特定的受众发送通知。 The console has deep integration with Google Analytics, Firebase predictions, and Firebase A/B testing. 该控制台与Google Analytics(分析),Firebase预测和Firebase A / B测试进行了深度集成。 Includes ongoing feature enhancements/updates such as the HTTP v1 API . 包括正在进行的功能增强/更新,例如HTTP v1 API Provides better delivery reporting and more reliable delivery 提供更好的交付报告和更可靠的交付

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM