Max*_*uta 5 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"}}'
Run Code Online (Sandbox Code Playgroud)
但有时这条消息需要长达 10 分钟才能传递给客户?(适用于 iOS 和 Android)。我怎样才能实现更快的交货?
我们已经发现了问题。Firebase 通常发送已使用主题的消息的速度非常慢。如果您向特定的个人设备发送消息,消息的传递速度会非常快。
| 归档时间: |
|
| 查看次数: |
3612 次 |
| 最近记录: |