FCM显示消息有时非常慢

时间:2018-07-15 15:12:50

标签: firebase firebase-cloud-messaging

我正在使用此请求向FCM发送显示消息:

curl -i -H 'Content-type: application/json' -H 'Authorization: ****' -XPOST https://fcm.googleapis.com/fcm/send -d '{"time_to_live":120,"priority":"high","content_available":true,"condition":"'\''4pz87gsel7183b7kcadw1dwzv'\'' in topics OR '\''4njsfszcgd9m765d6suktsz2a'\'' in topics OR '\''match-4i5yvb5co56meztqpc1quflk9'\'' in topics","data":{"event_id":"4i5yvb5co56meztqpc1quflk9_20180715150017","timestamp":1531666817},"notification":{"title":"test123,"body":"\u231a test123","sound":"sound","click_action":"my_action_link","android_channel_id":"ticker"}}'

但是有时此消息最多需要10分钟才能传递给客户? (适用于iOS和android)。我如何才能更快地交货?

1 个答案:

答案 0 :(得分:1)

我们已找到问题。通常,Firebase传递使用主题发布的消息的速度非常慢。如果您将邮件发送到特定的单个设备,则可以很快地将其发送出去。