Firebase通知-发送至用户群vs发送至主题差异 [英] Firebase Notification - send to user segment vs send to topic difference
本文介绍了Firebase通知-发送至用户群vs发送至主题差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我被分配了使用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 :)
推荐答案
使用用户服务
Use User segements
- 通常将推送通知发送到一组特定且有限的设备.
- 消息传递几乎是即时的(以我的经验).另外,我还没有像以前使用GCM那样观察到节流.
- 主题或发布/订阅机制用于相对较大的受众,并且信息类型为公开.例如天气和新闻.
- 主题有延迟(消息传递可能受到限制)
使用主题
这篇关于Firebase通知-发送至用户群vs发送至主题差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文