Firebase云消息传递服务中的多播ID [英] multicast id in firebase cloud messaging service

查看:201
本文介绍了Firebase云消息传递服务中的多播ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firebase云消息传递服务中的multicast_id是什么?

正如Google提供的文档中所述,多播ID是标识多播消息的唯一编号。



我读了,但是我不明白。
任何人都可以解释它吗?

解决方案

每个 Firebase云消息传递HTTP协议文档:

multicast_id 是FCM响应负载中必需的参数,是识别多播消息的唯一ID。
$ b 多播消息是一个通知,将从服务器发送并定位到多个客户端应用程序。



要直接回答您的问题,此响应参数只是标识ID发送到客户端应用程序的多播消息。

我还不确定,但是看构建应用程序服务器发送请求文档时,只有在使用Single设备消息传递以单个或一系列注册令牌为目标。



我希望这有助于。

What is the multicast_id in Firebase cloud messaging service?

As mentioned in the documentation that is provided by Google, multicast id is the unique number that identifies the multicast message.

I read it, but I did not understand it clearly. Can anyone explain it?

解决方案

Per Firebase Cloud Messaging HTTP Protocol documentation:

The multicast_id is a required parameter in the FCM response payload, and is a unique ID that identifies the multicast message.

A multicast message is a notification that will be sent from a server and targeting multiple client applications.

To answer your question directly, this response parameter is just an identification ID of a multicast message sent to client applications.

I'm not sure yet, but looking at the Build App Server Send Requests documentation, you will only get this response parameter when you use Single Device Messaging targeting a single or array of registration tokens.

I hope this helps.

这篇关于Firebase云消息传递服务中的多播ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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