Firebase Cloud Message有多可靠? [英] How reliable is Firebase Cloud Message?

查看:156
本文介绍了Firebase Cloud Message有多可靠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个其中包含聊天程序的应用程序.为Firebase Cloud Message实施了一个示例.我确实发现消息传递是免费的,所以我很高兴.但是现在的问题是,它的可靠性如何?

I'm creating a app having a chat messenger within it. Implemented a sample for Firebase Cloud Message. I did found out that messaging is free, so I'm good to go. But now the question is how reliable is it?

一年前,当GCM很简单并且不使用FCM时,它并不那么可靠,我们过去常常在收到GCM消息时开始调用我们的api.但是,现在FCM似乎发送了所有消息,即使我暂时不在线,当我在线时也可以发送.那真的100%可靠吗?

A year back when GCM was simple and didn't use FCM it was not that reliable, we used to start calling our apis when we receive a GCM message. But now FCM seems to send all the message even if I'm offline for the moment and when I become online it does deliver. So is it really 100% reliable?

我可以只使用FCM进行消息传递吗?还是应该在接收到FCM消息时仍然遵循调用api的旧过程?

Can I just use the FCM for messaging or should I still stick with the old procedure of calling my apis whenever the FCM message is received?

有人对它进行了如此彻底的测试吗?有什么建议吗?

Any one tested it so thoroughly? Any suggestions?

推荐答案

有人对它进行了如此彻底的测试吗?有什么建议吗?

Any one tested it so thoroughly? Any suggestions?

立即进行测试.到目前为止,可靠性似乎还不是FCM最强的一面.邮件会随机延迟一段时间,有时会长达数分钟.有些消息永远不会出现.交付给iPhone似乎更可靠,而Android则非常不稳定.对于我来说,不送货实际上是个阻碍,但是FCM开发人员似乎并不在乎可靠性,这很奇怪:

Testing it right now. So far the reliability doesn't look like the FCM's strongest side. Messages are delayed for random periods, sometime up to minutes. Some messages never show up. Delivery to iPhones seem more reliable, Androids are very erratic. Non-delivery is actually a show stopper for me, but FCM developers don't seem to care about the reliability which is odd:

https://github.com/firebase/quickstart-android/issues/83
https://github.com/firebase/quickstart-android/issues/194

这篇关于Firebase Cloud Message有多可靠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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