Firebase 通知 - 发送到用户段与发送到主题差异 [英] Firebase Notification - send to user segment vs send to topic difference
本文介绍了Firebase 通知 - 发送到用户段与发送到主题差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我被分配了使用 Firebase 实现推送通知的任务,但我对此很陌生.
I am assigned a task to use Firebase to implement push notifications but I am kind of new this.
查看文档:
https://firebase.google.com/docs/notifications/android/console-audience
我不知道在什么情况下我应该使用send to user segment
或send to a topic
.
I can't tell under what circumstances should I use send to user segment
or send to a topic
.
有人可以给我举个例子,什么时候使用一个或另一个并指出不同之处吗?提前谢谢:)
Can someone please give me some example when to use one or the other and point out the difference? Thanks ahead :)
推荐答案
使用用户细分
- 通常向一组特定且有限的设备发送推送通知.
- 消息传递几乎是即时的(根据我的经验).此外,我没有像之前使用 GCM 那样观察到节流.
- 主题或发布/订阅机制适用于相对较大的受众,信息类型为公开.例如天气和新闻.
- 主题有延迟(消息传递可能会受到限制)
使用主题
这篇关于Firebase 通知 - 发送到用户段与发送到主题差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文