Hi,

I would like to ask about ordering in following case:

POST /api/push

1) I send http POST requset towards /api/push with message A to audience of User1, User2, User3 ... (and other 500 users)

10 secondes later

2) I send http POST requset towards /api/push with message B to the same audience as for message A

Is it guaranteed that all users will receive message A and message B in this order? 

Thanks for answering my question. I assume it's not guaranteed but I did not find that information in your docs.
Martin

Didn't find what you were looking for?

New post

Comments

1 comment

  • Hi Martin,

    The short answer is, it depends.

    In most cases, yes, you would should expect that all users will receive Message A, and then Message B, in that order. However, you do also have to take into account the device itself.

    For example, if one of those devices is offline at any point during the two message sends, obviously that device will not receive that push until they come back online.

    Specifically for iOS, if a device is unreachable, only the most recent message that was sent to the device will be displayed to the user.

    The opposite is true for Android, where when the device comes back online, it will receive all the messages that were meant for that device, not just the most recent. Usually the order of the message is kept in-tact, but I would not guarantee that on Android.

    Lastly, if a device does not have good network connection, that could also affect the ordering of the push received on the device.

    In most cases however, you should expect the ordering of the messages to be kept in-tact, but be aware that there will be instances where that is not always true.

    Comment actions Permalink
    0

Please sign in to leave a comment.