Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FCM: Is the order in which messages are sent preserved?

If I send to a client message msg1 and then I send another message msg2, can I be absolutely sure that the client will receive first msg1 and only after that msg2 ?

like image 206
zeus Avatar asked Oct 23 '25 02:10

zeus


1 Answers

From documentation is clear that FCM does not guarantee message order.

That means that you might receive msg1 before msg2, but there is no guarantee that messages will be received in that order. You might as well receive msg2 before msg1.

You should not code your application logic to expect msg1 will always appear before mgs2.

About FCM Messages

enter image description here

like image 200
Dalija Prasnikar Avatar answered Oct 27 '25 01:10

Dalija Prasnikar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!