Firebase Cloud Messaging发送与接收 [英] Firebase Cloud Messaging Send vs Received
问题描述
我们正在使用Firebase云消息传递为用户发送通知.当我们查看云消息报告时,我们发现只有5%的发送消息被接收.
we are using firebase cloud messaging for sending notification for the user. when we going though the cloud messaging report we fount that only 5% of total send message is getting received.
为什么会这样?以及我们如何确保收到最多的邮件.
why is it so? and how can we make sure that maximum messages getting received.
推荐答案
I had the same problem as you can see here.
我在此处的注释中找到了此讨论.事实证明,在FCM中订阅主题不一定是永久的.因此,请勿一次向用户订阅主题.尽管它是每次启动,但都应在每次应用启动时都这样做
I found this discussion in the comments to this answer here. Turns out that subscribing to a topic in FCM is not necessarily permanent. So don't subscribe users to a topic once. Instead do it on every app start, although it is
"在技术上不是必需的.这可能取决于您的用例.为了例如,如果您想要一个全局主题,其中所有用户都是该主题的成员,您必须确保他们已订阅.把应用启动时的订阅方法可确保这一点."
"not technically necessary. It may depend on your use case. For example, if you want a global topic where all users are a member of, you'd have to make sure that they are subscribed to it. Putting the subscribe method when the app starts guarantees this."
- -@ AL.
就我而言,这为我解决了问题.现在,通知的接收人比以前更多了.只有未结清帐户仍然对我不起作用.始终为零.
In my Case this fixed it for me. Now the Notifications are received by a lot more people than before. Only the open-count is still not working for me. It is always on zero.
这篇关于Firebase Cloud Messaging发送与接收的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!